예제 #1
0
 /**
  * @return SelectQuery
  **/
 protected function makeSelectQuery()
 {
     if ($this->criteria) {
         return $this->criteria->toSelectQuery();
     }
     return $this->container->getDao()->makeSelectHead();
 }
예제 #2
0
 public function __construct(Identifiable $parent, GenericDAO $dao, $lazy = true)
 {
     parent::__construct($parent, $dao, $lazy);
     $worker = $lazy ? ManyToManyLinkedLazy::class : ManyToManyLinkedFull::class;
     $this->worker = new $worker($this);
 }