src/Database/ORM/Traits/Mapping.php
/**
	 * Returns true if this model has a primary key value.
	 *
	 * @return bool
	 */
Returns true if this model has a primary key value.
@return bool
Returns true if this model has a primary key value . @return bool
protected function hasPrimaryKey() {
		$value = $this->getPrimaryKeyValue();
		if (is_array($value)) {
			foreach ($value as $keyValue) {
				if (is_null($keyValue)) {
					return false;
				}
			}
		}
		return !is_null($value);
	}
protected function hasPrimaryKey ( ) { $ value = $ this -> getPrimaryKeyValue ( ) ; if ( is_array ( $ value ) ) { foreach ( $ value as $ keyValue ) { if ( is_null ( $ keyValue ) ) { return false ; } } } return ! is_null ( $ value ) ; }
Returns true if this model has a primary key value.
Returns true if this model has a primary key value .