Storm\Core\Object\IEntityMap::Identity PHP Метод

Identity() публичный Метод

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
Результат Identity The entity's identity
    public function Identity($Entity = null);

Usage Example

Пример #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