Fix To $entity->modified() For Nested Data #441

Merged
merged 1 commit into from May 23, 2012

Conversation

Projects
None yet
2 participants
Contributor

rmarscher commented Apr 26, 2012

I found that the text for $entity->modified() from pull #423 wasn't testing for sub-documents, arrays, or document arrays. I updated the test and made several modifications to fix the failures I found.

I'm nervous that we're still missing test cases. Fixing modified() to not just assume every field is modified is pretty dangerous because if this goes to master with a bug, then people running on master will have incorrect data in their databases.

Owner

nateabele commented Apr 30, 2012

Then I'll merge it to dev after the next time dev and master are synced, and then we can rebase data off of it and continue adding tests there.

Honestly, I'm not too terribly concerned, as modified() is only a convenience accessor, and isn't used in the query-generation process (see export() for that). Also, until recently it was almost completely useless due to some separate framework changes and previous lack of tests (* hides shame *).

nateabele merged commit 2c67a75 into UnionOfRAD:dev May 23, 2012

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