Re: hasOne relationship problem

2009-05-10 Thread Rick
Looking through cake/libs/model/model.php I don't see anywhere in saveAll where a check is done for a hasone association. (May have missed it). I don't see how it could do this by default in any case. It could recognize the hasone association but then how would it verify uniqueness. It

Re: hasOne relationship problem

2009-05-09 Thread Robin
Anyone ... pls a little help will be appreciated in the following part.. , but testing the application i was able to create a second profile for one user. I was guessing if thehasOneassociation should check that and return an error, or I am missing something? Thnx On May 5, 5:51 pm,

Re: hasOne relationship problem

2009-05-05 Thread Robin
Thanks Paulos for your advice. I could certainly add some manual checking before adding a child record. The question I am having in my mind is that should duplicate check be done by the hasOne relationship or is it possible. Am I missing anything here? Robin On May 5, 2:27 am, paulos nikolo

Re: hasOne relationship problem

2009-05-04 Thread paulos nikolo
Hi Robin.I am not an expert coz i am trying to build a similar app of yours so i ll tell you my opinion.As i saw your tables format i think you should set depentent=true in user model and the exslusive field in profile model true.The 1st one will delete the associated profile if the user has been