src/MVC/Relations/OneToOne.php
protected function first($model, $column, $value)
    {
        $data = $model::where($column, '=', $value);

        if (!is_null($data)) {
            if (count($data) > 0) {
                return $data[0];
            }
        }
    }
protected function first($model, $column, $value)
    {
        $data = $model::where($column, '=', $value);

        if (!is_null($data)) {
            if (count($data) > 0) {
                return $data[0];
            }
        }
    }
protected function first ( $ model , $ column , $ value ) { $ data = $ model :: where ( $ column , '=' , $ value ) ; if ( ! is_null ( $ data ) ) { if ( count ( $ data ) > 0 ) { return $ data [ 0 ] ; } } }
Get the object for the relation one to one.

@param $model : the model where to get data from
@param $column : the column where to get data from
@param $value : the value to get
Get the object for the relation one to one .