Beispiel #1
0
 /**
  * Constructor
  */
 public function __construct($class, $local, $foreign = null)
 {
     parent::__construct($class, $local, $foreign);
 }
Beispiel #2
0
 /**
  * Constructor
  *
  */
 public function __construct($class, $local, $foreign = null, $allowEmpty = false)
 {
     parent::__construct($class, $local, $foreign);
     $this->_allowEmpty = $allowEmpty;
 }
Beispiel #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;
 }