Alex Koch Fri Apr 13 12:24:34 -0400 2012

Subject: Overriding keys problem

Hi gurus of PHP programming!
First of all, I'd like to say many thanks to developers of this nice ORM.
I've got a problem:
I've got two models with one-to-one relationship, and I'm overriding the foreign key and primary key, in this situation the child object is created, but the key which points to the child table is NULL, maybe someone could provide me good documentation on AR conventions so I could understand where I'm sloping
My Flat model
And My District model
So district_id in flats table is NULL, but the region is created through $flat->create_district(array('region' => 'Obolon'))
If someone can provide where my mistake is, it would be great!