public function ModelCreator(array $data) { $this->data = $data; $this->data['instituicao_nome_url'] = Asserts::CheckName($this->data['instituicao_nome']); $create = new Create(); $create->Inserter(self::Entity, $this->data); if ($create->getResult()) { $this->result = $create->getResult(); $this->rowcount = $create->getRowCount(); $this->lastid = $create->getLastId(); } else { $this->result = $create->getResult(); $this->rowcount = 0; $this->lastid = false; } }