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