public function __construct() { $this->aggregateRootObjects = new \SplObjectStorage(); $this->deletedEntities = new \SplObjectStorage(); $this->changedEntities = new \SplObjectStorage(); }