protected function preStoreProcess()
    {
        // Create any related object that doesn't exist in the database.
        $localRelationships = $this->aggregate->getEntityMap()->getLocalRelationships();

        $this->createRelatedEntities($localRelationships);

        // Now we can sync the related collections
        $this->aggregate->syncRelationships($localRelationships);
    }
protected function preStoreProcess()
    {
        // Create any related object that doesn't exist in the database.
        $localRelationships = $this->aggregate->getEntityMap()->getLocalRelationships();

        $this->createRelatedEntities($localRelationships);

        // Now we can sync the related collections
        $this->aggregate->syncRelationships($localRelationships);
    }
protected function preStoreProcess ( ) { // Create any related object that doesn't exist in the database. $ localRelationships = $ this -> aggregate -> getEntityMap ( ) -> getLocalRelationships ( ) ; $ this -> createRelatedEntities ( $ localRelationships ) ; // Now we can sync the related collections $ this -> aggregate -> syncRelationships ( $ localRelationships ) ; }
Run all operations that have to occur before actually
storing the entity.

@throws \InvalidArgumentException

@return void
Run all operations that have to occur before actually storing the entity .