Changes between Initial Version and Version 1 of Ticket #8892, comment 9
- Timestamp:
- Jul 8, 2011, 5:20:26 AM (13 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #8892, comment 9
initial v1 30 30 ---- 31 31 32 Problems I've considered (sometimes I use id as synonym for the foreign key of an object):32 Problems I've considered: 33 33 * Compatible to users accessing to the foreign key field as follows: 34 34 {{{ … … 39 39 >>> a.b_id 40 40 }}} 41 So it is neccessary to set the id to a_id during the __set__ method of a.b = b. However the assertion that the id of b is the same as a.b_id must be before writing a to the database.41 So it is neccessary to set the id to a_id during the __set__ method of a.b = b. However, the assertion that the fk of b is the same as a.b_id must be true before writing a to the database. 42 42 43 43 * Not loading the related object from the database.