Storm\Core\Object\IEntityMap::Identity PHP Method

Identity() public method

If the entity is null returns a new blank identity otherwise returns the identity of the supplied entity.
public Identity ( object | null $Entity = null ) : Identity
$Entity object | null
return Identity The entity's identity
    public function Identity($Entity = null);

Usage Example

Esempio n. 1
0
 /**
  * {@inheritDoc}
  */
 public final function MapPrimaryKeysToIdentities(array $PrimaryKeys)
 {
     $Identities = array_map(function () {
         return $this->EntityMap->Identity();
     }, $PrimaryKeys);
     foreach ($this->IdentityPropertyPrimaryKeyMappings as $Mapping) {
         $Mapping->Revive($PrimaryKeys, $Identities);
     }
     return $Identities;
 }
All Usage Examples Of Storm\Core\Object\IEntityMap::Identity