Ejemplo n.º 1
0
 /**
  * Constructor.
  *
  * @param   EmbedMetadata   $metadata   The internal embed metadata that supports this Embed.
  * @param   Store           $store      The model store service for handling persistence operations.
  * @param   array|null      $properties The embed's properties from the db layer to init the embed with. New embeds will constructed with a null record.
  */
 public function __construct(EmbedMetadata $metadata, Store $store, array $properties = null)
 {
     parent::__construct($metadata, $store, $properties);
     $this->getState()->setLoaded();
 }
Ejemplo n.º 2
0
 /**
  * Constructor.
  *
  * @param   EntityMetadata  $metadata       The internal entity metadata that supports this Model.
  * @param   string          $identifier     The database identifier.
  * @param   Store           $store          The model store service for handling persistence operations.
  * @param   array|null      $properties     The model's properties from the db layer to init the model with. New models will constructed with a null record.
  */
 public function __construct(EntityMetadata $metadata, $identifier, Store $store, array $properties = null)
 {
     $this->identifier = $identifier;
     parent::__construct($metadata, $store, $properties);
 }