Skip to content
Snippets Groups Projects
Commit 831a3636 authored by infotechnohelp's avatar infotechnohelp
Browse files

Obsolete script part commented out

parent 626719a8
No related branches found
No related tags found
No related merge requests found
......@@ -266,16 +266,24 @@ class ModelManager
{
$Entity = $this->table->patchEntity($this->table->get($id), $data);
// Not required (patchEntity does the job)
/*
$validationErrors = $this->table->getValidator()->errors($Entity->toArray(), false);
if (count($validationErrors) > 0) {
return [false, $validationErrors];
}
*/
return [$this->table->saveOrFail($Entity), $Entity->getErrors()];
}
/**
* @param array $ids
* @return bool|mixed
* @throws \Exception
*/
public function deleteByIds(array $ids)
{
return $this->table->getConnection()->transactional(function() use ($ids){
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment