Skip to content

Jam_Model::changed() always returns TRUE after Jam_Model::set() is called #18

Description

@yanev

All fields on which the set method has been invoked are marked as changed no matter that the field content hasn't changed at all. Example:
// $post contains an array of fields => values which have same values with
// the values of the model e.g $model->name == $post['name']

$model = Jam::find('model', 1);
$model->set($post);
$model->changed('name'); // returns TRUE, but the expected behavior is FALSE
$model->name !== $post['name'] // returns FALSE which is correct

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions