Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
Eloquent\Model->getDirty() is type sensitive. Is this the behaviour we want? #1429
When a form is submitted, integers are presented as strings. When we resubmit the same form, $value !== $this->original[$key] so is classed as 'dirty' and rewritten to the database. I propose to change this to:
$value != $this->original[$key]
on line 2158. I would submit a patch but PR seems to be disabled.
Can anyone think of why it should be type sensitive?
You don't want automatic, not for everybody, or are you just referring within your model?