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);
}
}