src/MVC/Relations/BelongsTo.php
public function ini($related, $model, $local = null, $remote = null)
    {
        $this->setCurrent($model);
        $this->checkModels($related);
        //
        if ($this->isOneToOne($related, $model, $local, $remote)) {
            return $this->prepare($this->OneToOne($related, $model, $local, $remote));
        } elseif ($this->isOneToMany($related, $model, $local, $remote)) {
            return $this->prepare($this->OneToMany($related, $model, $local, $remote));
        }
    }
public function ini($related, $model, $local = null, $remote = null)
    {
        $this->setCurrent($model);
        $this->checkModels($related);
        //
        if ($this->isOneToOne($related, $model, $local, $remote)) {
            return $this->prepare($this->OneToOne($related, $model, $local, $remote));
        } elseif ($this->isOneToMany($related, $model, $local, $remote)) {
            return $this->prepare($this->OneToMany($related, $model, $local, $remote));
        }
    }
public function ini ( $ related , $ model , $ local = null , $ remote = null ) { $ this -> setCurrent ( $ model ) ; $ this -> checkModels ( $ related ) ; // if ( $ this -> isOneToOne ( $ related , $ model , $ local , $ remote ) ) { return $ this -> prepare ( $ this -> OneToOne ( $ related , $ model , $ local , $ remote ) ) ; } elseif ( $ this -> isOneToMany ( $ related , $ model , $ local , $ remote ) ) { return $ this -> prepare ( $ this -> OneToMany ( $ related , $ model , $ local , $ remote ) ) ; } }
The belongs to relation.

@param $model : the model wanted to be related to the
current model
@param $local : if not null would be the local column
of the relation
@param $remote : if not null would be the $remote column
of the relation
The belongs to relation .