final public function existsInDb() {

		$class = get_called_class();
		$conds = implode(' AND ', $this->getSqlKeyConditions());

		$this->db->setQuery('SELECT COUNT(1) FROM `' . $class::TABLE_NAME . '` WHERE ' . $conds);
		
		return (bool)$this->db->loadCount($this->getId());
	
	}
final public function existsInDb() {

		$class = get_called_class();
		$conds = implode(' AND ', $this->getSqlKeyConditions());

		$this->db->setQuery('SELECT COUNT(1) FROM `' . $class::TABLE_NAME . '` WHERE ' . $conds);
		
		return (bool)$this->db->loadCount($this->getId());
	
	}
final public function existsInDb ( ) { $ class = get_called_class ( ) ; $ conds = implode ( ' AND ' , $ this -> getSqlKeyConditions ( ) ) ; $ this -> db -> setQuery ( 'SELECT COUNT(1) FROM `' . $ class :: TABLE_NAME . '` WHERE ' . $ conds ) ; return ( bool ) $ this -> db -> loadCount ( $ this -> getId ( ) ) ; }
Check if this object still exists in DB as record. Return TRUE if exists.

@return	bool
Check if this object still exists in DB as record . Return TRUE if exists .