/** * @return SelectQuery **/ protected function makeSelectQuery() { if ($this->criteria) { return $this->criteria->toSelectQuery(); } return $this->container->getDao()->makeSelectHead(); }
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); }