Exemplo n.º 1
0
 public function __construct(\Core\ModelBundle\Model\Model $model, $group = 'default', $managerName = null, $metadata = null)
 {
     $this->model = $model;
     $this->entityName = $model->getEntityClass();
     $this->managerName = $managerName;
     $this->joins = array();
     $this->group = $group;
     $this->hints = array();
     $this->setTableAlias(self::TABLE_ALIAS);
     $this->metadata = $metadata;
     $this->reflectionClass = $this->model->getMetadata()->getReflectionClass();
     $this->createMetadata();
 }