We have moved our forum to GitHub Discussions. For questions about Phalcon v3/v4/v5 you can visit here and for Phalcon v6 here.

dynamic update not work

i generate my model using phalcon devtools, my model code like this:

public function initialize()
{
    parent::initialize();
    $this->useDynamicUpdate(true);
}

    public function columnMap()
{
    return [
        'id' => 'id',
        'first_name' => 'firstName',
        'last_name' => 'lastName',
        'login_name' => 'loginName',
        'email' => 'email',
        'password' => 'password',
        'sex' => 'sex',
        'birthday' => 'birthday',
        'activation_code' => 'activationCode',
        'persist_code' => 'persistCode',
        'reset_password_code' => 'resetPasswordCode',
        'permissions' => 'permissions',
        'is_activated' => 'isActivated',
        'activated_at' => 'activatedAt',
        'last_login' => 'lastLogin',
        'is_vip' => 'isVip',
        'created_at' => 'createdAt',
        'updated_at' => 'updatedAt'
    ];
}

my website dynamic update not work.


85.5k

you might have to pass a param to parent::initialize() to set the dynamic update there.

But i am not sure

i try it , but dynamic also not work

you might have to pass a param to parent::initialize() to set the dynamic update there.

But i am not sure



85.5k

i dont know, try to reproduce it in a small and closed envoirment . I am using it and its working for me.