mirror of
https://github.com/friendica/friendica
synced 2025-05-10 23:04:09 +02:00
Add parameter for "toArray()" method
This commit is contained in:
parent
8f130335a3
commit
4a3544582c
2 changed files with 10 additions and 3 deletions
|
@ -122,7 +122,7 @@ abstract class BaseRepository extends BaseFactory
|
|||
*/
|
||||
public function update(BaseModel $model)
|
||||
{
|
||||
if ($this->dba->update(static::$table_name, $model->toArray(), ['id' => $model->id], $model->getOriginalData())) {
|
||||
if ($this->dba->update(static::$table_name, $model->toArray(true), ['id' => $model->id], $model->getOriginalData())) {
|
||||
$model->resetOriginalData();
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue