protected function persistObjects()
    {
        $this->visitedDuringPersistence = new \SplObjectStorage();
        foreach ($this->aggregateRootObjects as $object) {
            $this->persistObject($object, null);
        }
        foreach ($this->changedEntities as $object) {
            $this->persistObject($object, null);
        }
    }
protected function persistObjects()
    {
        $this->visitedDuringPersistence = new \SplObjectStorage();
        foreach ($this->aggregateRootObjects as $object) {
            $this->persistObject($object, null);
        }
        foreach ($this->changedEntities as $object) {
            $this->persistObject($object, null);
        }
    }
protected function persistObjects ( ) { $ this -> visitedDuringPersistence = new \ SplObjectStorage ( ) ; foreach ( $ this -> aggregateRootObjects as $ object ) { $ this -> persistObject ( $ object , null ) ; } foreach ( $ this -> changedEntities as $ object ) { $ this -> persistObject ( $ object , null ) ; } }
First persist new objects, then check reconstituted entities.

@return void
First persist new objects then check reconstituted entities .