/** * Validate the data. This will clean the data according to type! * * @return bool */ public function validate() { $result = true; foreach ($this->access->getSchema()->getColumns() as $col) { $label = $col->getType()->getLabel(); $result = $result && $this->validateValue($col, $this->data[$label]); } return $result; }