hasOne relation when primary and foreign key are the same

2010-09-10 Thread emmexx
I have to access some table created by others outside of cakephp. 2 of the tables are related by a hasOne relationship but the second table has a primary key that is *the* foreign key. Please don't ask! :- ( I can't change the tables. I used the following models in cake: table1: class t1

Re: hasOne relation when primary and foreign key are the same

2010-09-10 Thread cricket
On Fri, Sep 10, 2010 at 6:55 AM, emmexx emmeics...@gmail.com wrote: I have to access some table created by others outside of cakephp. 2 of the tables are related by a hasOne relationship but the second table has a primary key that is *the* foreign key. Please don't ask! :- ( I can't change

Re: hasOne relation when primary and foreign key are the same

2010-09-10 Thread emmexx
On 10 Set, 20:08, cricket zijn.digi...@gmail.com wrote: That may be a fatal error. If PHP craps out it won't be able to log anything. Check your server's log. Too lazy to check apache logs... :-( PHP Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 4198401