Attila/core/Model.php
private function _checkEntity($oEntityCriteria)
	{
		$sClassName = get_called_class();
		$sClassName = str_replace('Model', 'Entity', $sClassName);

		if (!is_object($oEntityCriteria) || !$oEntityCriteria instanceof $sClassName) {

			throw new \Exception('You must passed '.$sClassName.' like Entity!');
		}
	}
private function _checkEntity($oEntityCriteria)
	{
		$sClassName = get_called_class();
		$sClassName = str_replace('Model', 'Entity', $sClassName);

		if (!is_object($oEntityCriteria) || !$oEntityCriteria instanceof $sClassName) {

			throw new \Exception('You must passed '.$sClassName.' like Entity!');
		}
	}
private function _checkEntity ( $ oEntityCriteria ) { $ sClassName = get_called_class ( ) ; $ sClassName = str_replace ( 'Model' , 'Entity' , $ sClassName ) ; if ( ! is_object ( $ oEntityCriteria ) || ! $ oEntityCriteria instanceof $ sClassName ) { throw new \ Exception ( 'You must passed ' . $ sClassName . ' like Entity!' ) ; } }
check if the entity passed is good

@access private
@param  object $oEntityCriteria
@return void
check if the entity passed is good