Skip to content
Snippets Groups Projects
Verified Commit 42568961 authored by Damien's avatar Damien
Browse files

FEAT #12635 TIME 0:05 Contact model post set

parent 31ab6bcb
No related branches found
No related tags found
No related merge requests found
......@@ -78,14 +78,15 @@ class ContactModel
public static function update(array $args)
{
ValidatorModel::notEmpty($args, ['set', 'where', 'data']);
ValidatorModel::arrayType($args, ['set', 'where', 'data']);
ValidatorModel::notEmpty($args, ['where', 'data']);
ValidatorModel::arrayType($args, ['set', 'postSet', 'where', 'data']);
DatabaseModel::update([
'table' => 'contacts',
'set' => $args['set'],
'where' => $args['where'],
'data' => $args['data']
'table' => 'contacts',
'set' => $args['set'],
'postSet' => $args['postSet'],
'where' => $args['where'],
'data' => $args['data']
]);
return true;
......
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