'Varchar(50)' ]; public function validate() { $result = ValidationResult::create(); if (empty($this->Name)) { $result->addError("This object needs a name. Otherwise it will have an identity crisis!"); } return $result; } }