public function testValidateCascadedPropertyDoesNotValidateNullValues() { $entity = new Entity(); $entity->reference = null; $this->metadata->addPropertyConstraint('reference', new Valid()); $this->visitor->validate($entity, 'Default', ''); $this->assertCount(0, $this->visitor->getViolations()); }
/** * @return ConstraintViolationList * * @deprecated Deprecated since version 2.2, to be removed in 2.3. */ public function getViolations() { trigger_error('getViolations() is deprecated since version 2.2 and will be removed in 2.3.', E_USER_DEPRECATED); return $this->visitor->getViolations(); }
/** * @return ConstraintViolationList * * @deprecated Deprecated since version 2.2, to be removed in 2.3. */ public function getViolations() { return $this->visitor->getViolations(); }