Hi,
I came across a couple of bugs in the ERModernMovies demo and I was wondering if anyone was aware of them or might now how to fix them.
First bug: Relationship entity gets cached.
Steps to reproduce.
1. Launch ERModernMovies demo.
2. Navigate to create new movie.
3. On step 3 make sure you pick a director.
4. On step 4 search for a role to add to movie.
Expected: Will see a table with list of roles.
Actual: You receive an error:
<com.webobjects.foundation.NSKeyValueCoding$UnknownKeyException message '<webobjectsexamples.businesslogic.movies.common.Talent 0x16432f65> valueForKey(): lookup of unknown key: 'roleName'. This class does not have an instance variable of the name roleName or _roleName, nor a method of the name roleName, _roleName, getRoleName, or _getRoleName' object '<webobjectsexamples.businesslogic.movies.common.Talent pk:"0">' key 'roleName'>
It appears that the entity from step 3 gets cached and the edit relationship component is searching on that entity.
Second bug: Incorrect validation error
Steps to reproduce:
1. Launch ERModernMovies demo.
2. Edit any movie.
3. Change the studio on tab 2.
4. Save changes:
Expected: You will save changes and be taken back to list page.
Actual: You receive validation error messages:
A studio's budget cannot be less than $100!
Could not save your changes: A studio's budget cannot be less than $100!
I checked and the studio does have a budget greater than $100. Is this a bug from using the embedded database?
Thanks in advance,
Johnny