Beispiel #1
0
 /**
  * Delete models.
  */
 protected function deleteModels()
 {
     $ref = $this->relation->getReference();
     if ($ref->isPermitted(Entity::DELETE)) {
         $ref->getRepository()->delete($this->getIdsToDelete());
     }
 }
Beispiel #2
0
 /**
  * @param InlineRelation $relation
  * @param array $cid
  * @param array $data
  */
 public function __construct(InlineRelation $relation, $cid, array $data)
 {
     $this->relation = $relation;
     $this->cid = $cid;
     parent::__construct($relation->getReference(), $data);
 }