[limb-issues] Created: (AR-5) Dirtiness check doesn't properly work for magic attributes of existing objects
Pavel Shevaev (JIRA)
jira at limb-project.com
Thu Dec 7 00:01:04 MSK 2006
Dirtiness check doesn't properly work for magic attributes of existing objects
------------------------------------------------------------------------------
Key: AR-5
URL: http://jira.limb-project.com/browse/AR-5
Project: ACTIVE_RECORD
Issue Type: Bug
Reporter: Pavel Shevaev
Priority: Critical
Dirtiness check doesn't properly work for magic attributes of existing objects, for example:
$lecture = new Lecture();
$lecture->title = 'test';
$lecture->save();
$lecture2 = new Lecture($lecture->getId());
$lecture2->title = 'test2';
$lecutre2->save(); //object is not saved since it's considered to be not dirty
I think the best and the simplest way to fix this bug is to get rid of magic attributes feature at all even in lmbObject, this way we'll make developers to use getters/setters all the time. This is going to be less convenient for some cases, maybe, but at least a 100% working solution. Furthermore, magic setters/getters code in lmbObject is really ugly and quite cumbersome to maintain.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.limb-project.com/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the limb-issues
mailing list