src/MVC/Relations/OneToOne.php
public function ini($related, $model, $local = null, $remote = null)
    {
        $this->checkModels($related, $model);
        //
        $relationVal = $this->relationValue($related, $model, $local);
        $relationColumn = $this->relationColumn($related, $model, $remote);
        //
        $mod = $this->first($related, $relationColumn, $relationVal);
        //
        return $this->prepare($mod, $related);
    }
public function ini($related, $model, $local = null, $remote = null)
    {
        $this->checkModels($related, $model);
        //
        $relationVal = $this->relationValue($related, $model, $local);
        $relationColumn = $this->relationColumn($related, $model, $remote);
        //
        $mod = $this->first($related, $relationColumn, $relationVal);
        //
        return $this->prepare($mod, $related);
    }
public function ini ( $ related , $ model , $ local = null , $ remote = null ) { $ this -> checkModels ( $ related , $ model ) ; // $ relationVal = $ this -> relationValue ( $ related , $ model , $ local ) ; $ relationColumn = $ this -> relationColumn ( $ related , $ model , $ remote ) ; // $ mod = $ this -> first ( $ related , $ relationColumn , $ relationVal ) ; // return $ this -> prepare ( $ mod , $ related ) ; }
The one to one 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 one to one relation .