示例#1
0
 /**
  * Checks if the value is not empty.
  *
  * @param Mapping $mapping The mapping object
  * @param string  $message The error message
  *
  * @return Mapping
  */
 public function notEmpty(Mapping $mapping, $message = 'error.not_empty')
 {
     return $mapping->validate(new \Mapped\Constraint\NotEmpty($message));
 }