public function isDeletable() {
		
		$inverseForeignKeys = $this->db->getInverseForeignKeys(static::TABLE_NAME);
		
		foreach ($inverseForeignKeys as $r) {
			
			// only if restrict it could be not deletable
			if ('RESTRICT' != $r->DELETE_RULE) continue;
			
			// get the property name
			$propertyName = $this->getMappedProperty($r->REFERENCED_COLUMN_NAME);
			
			return !$this->checkRecordExists($r->TABLE_NAME, $r->COLUMN_NAME, $this->$propertyName);
			
		}
		
		// nothing found, is deletable
		return TRUE;
		
	}
public function isDeletable() {
		
		$inverseForeignKeys = $this->db->getInverseForeignKeys(static::TABLE_NAME);
		
		foreach ($inverseForeignKeys as $r) {
			
			// only if restrict it could be not deletable
			if ('RESTRICT' != $r->DELETE_RULE) continue;
			
			// get the property name
			$propertyName = $this->getMappedProperty($r->REFERENCED_COLUMN_NAME);
			
			return !$this->checkRecordExists($r->TABLE_NAME, $r->COLUMN_NAME, $this->$propertyName);
			
		}
		
		// nothing found, is deletable
		return TRUE;
		
	}
public function isDeletable ( ) { $ inverseForeignKeys = $ this -> db -> getInverseForeignKeys ( static :: TABLE_NAME ) ; foreach ( $ inverseForeignKeys as $ r ) { // only if restrict it could be not deletable if ( 'RESTRICT' != $ r -> DELETE_RULE ) continue ; // get the property name $ propertyName = $ this -> getMappedProperty ( $ r -> REFERENCED_COLUMN_NAME ) ; return ! $ this -> checkRecordExists ( $ r -> TABLE_NAME , $ r -> COLUMN_NAME , $ this -> $ propertyName ) ; } // nothing found, is deletable return TRUE ; }
Check whether record of this object is deletable based on inverse foreign-key list.

@return	bool
Check whether record of this object is deletable based on inverse foreign - key list .