src/Model/FabricateModel.php
public function hasOne($name, $foreignKey, $modelName = null)
    {
        $this->addAssociation('hasOne', $name, $foreignKey, $modelName);
        return $this;
    }
public function hasOne($name, $foreignKey, $modelName = null)
    {
        $this->addAssociation('hasOne', $name, $foreignKey, $modelName);
        return $this;
    }
public function hasOne ( $ name , $ foreignKey , $ modelName = null ) { $ this -> addAssociation ( 'hasOne' , $ name , $ foreignKey , $ modelName ) ; return $ this ; }
Add hasOne association

@param string $name Association Name
@param string $foreignKey Forreign Key Column Name
@param string $modelName If association name is not model name then should set Model Name.
@return FabricateModel $this
Add hasOne association