Exemple #1
0
 public function profileProperty($property, $role, $isEditable = true)
 {
     $profileProperty = new ProfileProperty();
     $profileProperty->setProperty($property);
     $profileProperty->setIsEditable($isEditable);
     $profileProperty->setRole($this->role($role));
     $this->om->persist($profileProperty);
     return $profileProperty;
 }
 public function invertProperty(ProfileProperty $property)
 {
     $property->setIsEditable(!$property->isEditable());
     $this->om->persist($property);
     $this->om->flush();
 }