search for: sillly

Displaying 1 result from an estimated 1 matches for "sillly".

Did you mean: silly
2006 May 17
4
Knowing id before a call to save
Hiall, Is it possible to find out the value for the id field of any record before it was actually saved, i.e. if new_record? returns true? To motivate this: I have a parent model which should not exists alone but needs a few other (child) models to be initialized whenever a new record of parent is instantiated. Needless to say, the child models need the id of the parent model as foreign key. I