/** * {@inheritdoc} */ public function validate() { //self validate # GinnyMapException::300 if (empty($this->bundle)) { throw new GinnyMapException('BaseModel::$bundle empty', 300); } # GinnyMapException::301 if ($this->fields->isEmpty()) { throw new GinnyMapException('BaseModel::$fields empty', 301); } foreach ($this->fields as $field) { $field->validate(); } foreach ($this->associations as $association) { $association->validate(); } }
public function keys($name) { return $this->keys->get($name); }