Exemple #1
0
 public function addToSet(LiskDAO $dao)
 {
     if ($this->relatives) {
         throw new Exception(pht("Don't call %s after loading data!", __FUNCTION__ . '()'));
     }
     $this->daos[] = $dao;
     $dao->putInSet($this);
     return $this;
 }
Exemple #2
0
 public function addToSet(LiskDAO $dao)
 {
     if ($this->relatives) {
         throw new Exception("Don't call addToSet() after loading data!");
     }
     $this->daos[] = $dao;
     $dao->putInSet($this);
     return $this;
 }
 public function __construct(LiskDAO $object)
 {
     $this->set = new LiskDAOSet();
     $this->object = $object->putInSet($this->set);
 }
Exemple #4
0
 public function addToSet(LiskDAO $dao)
 {
     $this->daos[] = $dao;
     $dao->putInSet($this);
     return $this;
 }