setResourceType() public method

Set resource type.
public setResourceType ( string $resourceType ) : Newscoop\Entity\AuditEvent
$resourceType string
return Newscoop\Entity\AuditEvent
 public function save(AuditEvent $event, array $values)
 {
     $em = $this->getEntityManager();
     $event->setResourceId($values['resource_id']);
     $event->setResourceType($values['resource_type']);
     $event->setResourceTitle($values['resource_title']);
     $event->setResourceDiff($values['resource_diff']);
     $event->setAction($values['action']);
     if (!empty($values['user'])) {
         $user = is_int($values['user']) ? $em->getReference('Newscoop\\Entity\\User', $values['user']) : $values['user'];
         $event->setUser($user);
     }
     $em->persist($event);
     $em->flush();
 }
 public function setResourceType($resourceType)
 {
     $this->__load();
     return parent::setResourceType($resourceType);
 }