addEagerConstraints() public method

Set the constraints for an eager load of the relation.
public addEagerConstraints ( array $models ) : void
$models array
return void
コード例 #1
0
ファイル: MorphOneOrMany.php プロジェクト: navruzm/lmongo
 /**
  * Set the constraints for an eager load of the relation.
  *
  * @param  array  $models
  * @return void
  */
 public function addEagerConstraints(array $models)
 {
     parent::addEagerConstraints($models);
     $this->query->where($this->morphType, $this->morphClass);
 }