/** * {@inheritdoc} */ public function toArray() { $result = parent::toArray(); if (null !== $this->targetMetadata) { $result['targetMetadata'] = $this->targetMetadata->toArray(); } return $result; }
/** * * * @return void */ private function from() { $entityStorage = $this->entityMetadata->getStorage(); $table = $entityStorage->getTable(); $this->sqlChunks[] = 'FROM ' . $this->connection->escapeAndQuoteTable($table); }
public static function set(EntityMetadata $metadata) { self::$metadatas[$metadata->getEntityClass()] = $metadata; }
/** * @covers Tip\Annotation\EntityMetadata::getLookup * */ public function testGetAcl() { $i = $this->object->getAcl(); $this->assertInstanceOf('Max\\Ann\\Entity\\Acl', $i); }