Attila/core/Model.php
public function getLastRow()
	{
		$sEntityNamespace = preg_replace('/^(.*)Model\\\\.+$/', '$1Entity\\', get_called_class());
		
		$aResults = $this->orm
					     ->select(array('*'))
			 		     ->from($this->_sTableName)
			 		     ->orderBy(array(LibEntity::getPrimaryKeyName($this->entity) => 'DESC'))
			 		     ->limit(1)
    				     ->load(false, $sEntityNamespace);

    	if (isset($aResults[0]) && $this->_isFilter()) { $aResults[0] = $this->_applyFilter($aResults[0]); }

		return $aResults[0];
	}
public function getLastRow()
	{
		$sEntityNamespace = preg_replace('/^(.*)Model\\\\.+$/', '$1Entity\\', get_called_class());
		
		$aResults = $this->orm
					     ->select(array('*'))
			 		     ->from($this->_sTableName)
			 		     ->orderBy(array(LibEntity::getPrimaryKeyName($this->entity) => 'DESC'))
			 		     ->limit(1)
    				     ->load(false, $sEntityNamespace);

    	if (isset($aResults[0]) && $this->_isFilter()) { $aResults[0] = $this->_applyFilter($aResults[0]); }

		return $aResults[0];
	}
public function getLastRow ( ) { $ sEntityNamespace = preg_replace ( '/^(.*)Model\\\\.+$/' , '$1Entity\\' , get_called_class ( ) ) ; $ aResults = $ this -> orm -> select ( array ( '*' ) ) -> from ( $ this -> _sTableName ) -> orderBy ( array ( LibEntity :: getPrimaryKeyName ( $ this -> entity ) => 'DESC' ) ) -> limit ( 1 ) -> load ( false , $ sEntityNamespace ) ; if ( isset ( $ aResults [ 0 ] ) && $ this -> _isFilter ( ) ) { $ aResults [ 0 ] = $ this -> _applyFilter ( $ aResults [ 0 ] ) ; } return $ aResults [ 0 ] ; }
get last row

@access public
@return object
get last row