hasMany() 공개 메소드

Defines many to one association
public hasMany ( $model, $their_field = null, $our_field = null, $as_field = null )
예제 #1
0
파일: Relation.php 프로젝트: atk4/atk4
 public function hasMany($model, $their_field = null, $our_field = null, $as_field = null)
 {
     return $this->owner->hasMany($model, $their_field, $our_field, $as_field)->from($this);
 }
예제 #2
0
파일: Relation.php 프로젝트: atk4/atk4
 public function hasMany($model, $their_field = UNDEFINED, $our_field = UNDEFINED, $reference_name = null)
 {
     $field = $this->model->hasMany($model, $their_field, $our_field, $reference_name);
     return $field;
 }