Exemple #1
0
 function __construct(\DBAL\Data\Entity $entity, array $array = array(), $type = null)
 {
     $this->setEntity($entity);
     if (is_null($type)) {
         $type = 'DBAL\\Data\\Entity\\Relationship';
     }
     parent::__construct($array, $type);
 }
Exemple #2
0
 function offsetSet($offset, $attr)
 {
     if (is_int($offset)) {
         $offset =& $attr->getName();
     }
     $attr->setModel($this->model);
     if (!is_null($attr->getLoadName())) {
         $this->model->setLoaderAttribute($attr);
     }
     parent::offsetSet($offset, $attr);
 }
Exemple #3
0
 function remove($index)
 {
     $subject = $this[$index];
     $subject->setParent(null);
     parent::remove($index);
 }