Thanks for the update, I am glad to hear that it is working for you.
It seems to me that in order for the system to know which record is being
updated, that all of the ids should need to be supplied for every record that
is being saved in a transaction. If it is saving a record for which you di
Hi Kevin,
It worked perfectly!!
I just would lime to know why only Addresses need the id.
But if you dont know, thats OK. You already relped me!!
Thanks a lot!
Best regards,
Paulo Terra
--
Sign up for our Newsletter for updates.
http://cakephp.org/newsletter/signup
We will soon be closing
I am not sure why the others appear to be working, I suggest that you test
thoroughly to make sure they are doing as expected.
It may be because of the many - to -one relationship though.
Let me know how it goes.
Regards,
Kevin
--
Sign up for our Newsletter for updates.
http://cakephp.org/news
Hi Kekin, it is very kind of you help this poor Cake novice. It have been
hard programing days.
Ok, if I have a hidden ID field of the Addresses I think it is going to
work. But why do I have to put the Addresses ID and the other entities work
without it?
Here is the form:
PS: Thanks again fo
Does your edit form have an input for the address_id?
something like:"user.addresses.0.id"
I see the id: (29) for the address in the debug output of the entity...
If you need further help with it, you are going to need to show the edit form
in order to figure out what may be missing.
Hope th
Hi heavyKevy, thank you for your answer!
Ok, about your first advise, I simplified and its ok, but about the issue,
that´s it, the problem is the missind ID. But I simlpy don´t know why all
other entitys comes with the id and Addresses not! That is the problem. Do
you know why?
Thanks in advan
First off you don't need to cotain users 3 times, Users.Addresses.Countries
includes all 3 tables already.
Secondly, if the address has the id, it should automatically detect that it is
being edited, if the id is missing it will add the address.
--
Sign up for our Newsletter for updates.
http:
Hi,
I am creating a user edit form consisting of five related entities as
follows:
Buyers belongsTo Users
Genres belongsToMany Buyers
Buyers belongsToMany Genres
Users hasOne Buyers
Users hasMany Addresses
Addresses belongsTo Users
Addresses belongsTo Countries
Countries hasMany Addresses
I crea