public function loadFirst($filter = true, $sort = true, $loadDependencies = true)
    {
        // Needed as the default order otherwise triggers the type dependency
        $oldDep = $this->_addLoadDependency;
        $this->_addLoadDependency = $loadDependencies;

        $output = parent::loadFirst($filter, $sort);

        $this->_addLoadDependency = $oldDep;

        return $output;
    }
public function loadFirst($filter = true, $sort = true, $loadDependencies = true)
    {
        // Needed as the default order otherwise triggers the type dependency
        $oldDep = $this->_addLoadDependency;
        $this->_addLoadDependency = $loadDependencies;

        $output = parent::loadFirst($filter, $sort);

        $this->_addLoadDependency = $oldDep;

        return $output;
    }
public function loadFirst ( $ filter = true , $ sort = true , $ loadDependencies = true ) { // Needed as the default order otherwise triggers the type dependency $ oldDep = $ this -> _addLoadDependency ; $ this -> _addLoadDependency = $ loadDependencies ; $ output = parent :: loadFirst ( $ filter , $ sort ) ; $ this -> _addLoadDependency = $ oldDep ; return $ output ; }
Returns an array containing the first requested item.

@param mixed $filter True to use the stored filter, array to specify a different filteloa
@param mixed $sort True to use the stored sort, array to specify a different sort
@param boolean $loadDependencies When true the row dependencies are loaded
@return array An array or false
Returns an array containing the first requested item .