Attila/core/Model.php
public function updateAndGet($oEntity)
	{
		$sEntityNamespace = preg_replace('/^(.*)Model\\\\.+$/', '$1Entity\\', get_called_class());
		
		$mResult = $this->update($oEntity);

		if ($result) {
			
		    $aEntity = get_object_vars(LibEntity::getRealEntity($oEntity));
			$mPrimaryKey = LibEntity::getPrimaryKeyName($aEntity);
			
			$mResult = $this->orm
					        ->select(array('*'))
			 		        ->from($this->_sTableName)
			 		        ->where(array($mPrimaryKey => $aEntity[$mPrimaryKey]))
    				        ->load(false, $sEntityNamespace);
    	
        	if ($this->_isFilter()) {
        	     
        	    foreach ($mResult as $iKey => $oValue) {
        	         
        	        $mResult[$iKey] = $this->_applyFilter($oValue);
        	    }
        	}
		}

		return $mResult;
	}
public function updateAndGet($oEntity)
	{
		$sEntityNamespace = preg_replace('/^(.*)Model\\\\.+$/', '$1Entity\\', get_called_class());
		
		$mResult = $this->update($oEntity);

		if ($result) {
			
		    $aEntity = get_object_vars(LibEntity::getRealEntity($oEntity));
			$mPrimaryKey = LibEntity::getPrimaryKeyName($aEntity);
			
			$mResult = $this->orm
					        ->select(array('*'))
			 		        ->from($this->_sTableName)
			 		        ->where(array($mPrimaryKey => $aEntity[$mPrimaryKey]))
    				        ->load(false, $sEntityNamespace);
    	
        	if ($this->_isFilter()) {
        	     
        	    foreach ($mResult as $iKey => $oValue) {
        	         
        	        $mResult[$iKey] = $this->_applyFilter($oValue);
        	    }
        	}
		}

		return $mResult;
	}
public function updateAndGet ( $ oEntity ) { $ sEntityNamespace = preg_replace ( '/^(.*)Model\\\\.+$/' , '$1Entity\\' , get_called_class ( ) ) ; $ mResult = $ this -> update ( $ oEntity ) ; if ( $ result ) { $ aEntity = get_object_vars ( LibEntity :: getRealEntity ( $ oEntity ) ) ; $ mPrimaryKey = LibEntity :: getPrimaryKeyName ( $ aEntity ) ; $ mResult = $ this -> orm -> select ( array ( '*' ) ) -> from ( $ this -> _sTableName ) -> where ( array ( $ mPrimaryKey => $ aEntity [ $ mPrimaryKey ] ) ) -> load ( false , $ sEntityNamespace ) ; if ( $ this -> _isFilter ( ) ) { foreach ( $ mResult as $ iKey => $ oValue ) { $ mResult [ $ iKey ] = $ this -> _applyFilter ( $ oValue ) ; } } } return $ mResult ; }
update Entity and get it

@access public
@param  object $oEntityCriteria
@return mixed
update Entity and get it