getObjectManager() public method

public getObjectManager ( ) : Doctrine\Common\Persistence\ObjectManager
return Doctrine\Common\Persistence\ObjectManager
 public function createPost(DoctrineResourceEvent $event)
 {
     $objectManager = $event->getObjectManager();
     $event->getEntity();
     $event->getData();
     $event->getResourceEvent();
     $event->getEntityClassName();
     $event->getEntityId();
 }
 /**
  * @param DoctrineResourceEvent $event
  *
  * @return array
  */
 public function handleCollections(DoctrineResourceEvent $event)
 {
     // Setup the dependencies
     $this->setObjectManager($event->getObjectManager());
     $this->setRootEntity($event->getEntity());
     $this->setObjectData((array) $event->getData());
     $this->setInputFilter($event->getResourceEvent()->getInputFilter());
     $this->setServiceManager($event->getTarget()->getServiceManager());
     // Start processing with the root entity, if any nested entities will be handled by the iterateEntity method
     $this->setObjectData($this->iterateEntity($this->getRootEntity(), $this->getObjectData(), $this->getInputFilter()));
     $event->setData($this->getObjectData());
     return $this->getObjectData();
 }