Beispiel #1
0
 /**
  * {@inheritDoc}
  */
 public function addConstraint(Constraint $constraint)
 {
     $constraint->addImplicitGroupName($this->getShortClassName());
     parent::addConstraint($constraint);
 }
Beispiel #2
0
 /**
  * Returns the names of the properties that should be serialized
  *
  * @return array
  */
 public function __sleep()
 {
     return array_merge(parent::__sleep(), array('class', 'name', 'property'));
 }