Exemple #1
0
 /**
  * This class extends default class, by operating on Entity.
  * @param Entity $entity Entity, to manage.
  */
 public function setEntity(Entity $entity)
 {
     $this->entity = $entity;
     $this->setEntityName($entity->getEntityName());
     $this->setEntityId($entity->getId());
     $this->repository = $this->orm->repository($this->entityName, $this->module)->get($this->entityName, $this->module);
     return $this;
 }