kazu2012 / persevere-framework

Automatically exported from code.google.com/p/persevere-framework
0 stars 0 forks source link

Many-to-one relational column attempts to look up a null id #211

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Create two relational data sources A and B
2. Create a many-to-one relationship between A and B.  The backing table for A 
should have a 
foreign key ("b_id") pointing at an item in B.  Map this relational column to 
the b property of A.
3. Add data to the tables backing A and B where A.b_id is null for some rows.
4. Configure the b property of A to be optional.

What is the expected output? What do you see instead?
The expected output would be that when A.b_id is null, A.b should show up as 
null in the JSON 
response.  Instead, A.b shows up as "Error: InternalError: B/null not found"

What version of the product are you using? On what operating system?
I observed this problem on a recent nightly build (after beta 3), running on 
Mac OS X.  The 
backing database tables were in MySQL, running on the same machine.

Please provide any additional information below.

Original issue reported on code.google.com by dsta...@gmail.com on 23 Jun 2009 at 7:36

GoogleCodeExporter commented 8 years ago

Original comment by kris...@gmail.com on 29 Jun 2009 at 5:36