Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Can't delete record using schema in Phalcon v4.0 #14080
Just tried to delete a record:
/** @var Model $className */ $model = $className::findFirst([ 'id=?0', 'bind' => [$id], ]); $model->delete();
/phalcon/mvc/model::delete() has such code:
/phalcon/db/adapter::delete() has such code:
Сonclusion: framework doesn't support delete when schema is used.
I'm new in Phalcon and i didn't try to update records yet, but as i see in sources, table value as array with schema and source doesn't process, because table parameter is
Yes, this is a problem.
P.S. This code was taken from master branch, but in branch 4.0 the same situation.