Attila/core/Model.php
public function insertAndGet($oEntity)
	{
		$iResult = $this->insert($oEntity);
		
		if ($iResult) { return $this->getLastRow(); }

		return $iResult;
	}
public function insertAndGet($oEntity)
	{
		$iResult = $this->insert($oEntity);
		
		if ($iResult) { return $this->getLastRow(); }

		return $iResult;
	}
public function insertAndGet ( $ oEntity ) { $ iResult = $ this -> insert ( $ oEntity ) ; if ( $ iResult ) { return $ this -> getLastRow ( ) ; } return $ iResult ; }
save Entity and get it

@access public
@param  object $oEntity
@return int|object
save Entity and get it