/** * Up person with role * * @param Person $person * @param Role $role * @param MultimediaObject $multimediaObject * @return MultimediaObject */ public function upPersonWithRole(Person $person, Role $role, MultimediaObject $multimediaObject) { $multimediaObject->upPersonWithRole($person, $role); $this->dm->persist($multimediaObject); $this->dm->flush(); return $multimediaObject; }