public function oneToOne($model, $childKey = null, $thisKey = null)
	{
		// Default the keys if not set
		$thisKey  = $thisKey  ?: $this->getPrimaryKey();
		$childKey = $childKey ?: strtolower($this->getModelName()) . '_id';

		return new OneToOne($this, $this->resolve($model), $thisKey, $childKey);
	}
public function oneToOne($model, $childKey = null, $thisKey = null)
	{
		// Default the keys if not set
		$thisKey  = $thisKey  ?: $this->getPrimaryKey();
		$childKey = $childKey ?: strtolower($this->getModelName()) . '_id';

		return new OneToOne($this, $this->resolve($model), $thisKey, $childKey);
	}
public function oneToOne ( $ model , $ childKey = null , $ thisKey = null ) { // Default the keys if not set $ thisKey = $ thisKey ? : $ this -> getPrimaryKey ( ) ; $ childKey = $ childKey ? : strtolower ( $ this -> getModelName ( ) ) . '_id' ; return new OneToOne ( $ this , $ this -> resolve ( $ model ) , $ thisKey , $ childKey ) ; }
Retrieves a one to one model relationship

@param   string       $model     The name of the primary model
@param   string|null  $childKey  The child key that point to the local key
@param   string|null  $thisKey   The local key on the model
@return  \Hubzero\Database\Relationship\OneToOne
@since   2.0.0
Retrieves a one to one model relationship