Exemplo n.º 1
0
 /**
  * Constructor
  */
 public function __construct($class, $local, $foreign = null)
 {
     parent::__construct($class, $local, $foreign);
 }
Exemplo n.º 2
0
 /**
  * Constructor
  *
  */
 public function __construct($class, $local, $foreign = null, $allowEmpty = false)
 {
     parent::__construct($class, $local, $foreign);
     $this->_allowEmpty = $allowEmpty;
 }
Exemplo n.º 3
0
 /**
  * Eager load relationships to avoid the N+1 problem
  * @chainable
  */
 public function includes($rels)
 {
     foreach (Relationship::normalizeMap($rels) as $alias => $nested) {
         $this->_includes[$alias] = new Relationships\Includer($this->_query, $this->_schema->relationship($alias), $nested);
     }
     return $this;
 }