Log message #4100537

# At Username Text
# Dec 4th 2017, 12:14 obinoob9 lol it was entered before and passed the same validation rules
# Dec 4th 2017, 12:13 casmo .co domain is a valid top-level extention
# Dec 4th 2017, 12:13 obinoob9 yes it does but why if I've not changed the field ?
# Dec 4th 2017, 12:12 casmo Validation rule 'email' gives a false on 'test@domain.co'
# Dec 4th 2017, 12:10 obinoob9 hmic I've debugged the $client before submit and after submit https://gist.github.com/obinoob/de8b3cf7c2923e810db01368b1e47572
# Dec 4th 2017, 12:03 obinoob9 hmic I guess I have but I also know learned a lot in the process and thank you for your help ;) but still not working and I've noticed the same behaviour
# Dec 4th 2017, 11:48 hmic not just the requirement in this case :/
# Dec 4th 2017, 11:48 hmic you missed the whole concept probably
# Dec 4th 2017, 11:45 obinoob I have read the section form for associations can believe I missed that
# Dec 4th 2017, 11:44 hmic cake cannot and will not identify an existing record for updating it, if you dont provide the primary key with it.
# Dec 4th 2017, 11:43 hmic might be more, but these are missing at least.
# Dec 4th 2017, 11:43 hmic so add phones.0.id an phones.1.id as well as email.0.id and email.1.id to your form
# Dec 4th 2017, 11:42 hmic poing beeing: you need to add the id of all your associated entites to your form for them to be able to update them
# Dec 4th 2017, 11:42 hmic welll, either your understanding/knowledge is weird or you are french or something in your language use is off :P
# Dec 4th 2017, 11:41 obinoob I have done id => true for accessible fields before and same behavior
# Dec 4th 2017, 11:40 obinoob To identify unique registries
# Dec 4th 2017, 11:39 hmic whats the primary key used for?
# Dec 4th 2017, 11:38 obinoob Value need to be compared?
# Dec 4th 2017, 11:38 hmic put in a differnet perspective: how to know *which* data you want to update?
# Dec 4th 2017, 11:37 hmic how gets this decision made?
# Dec 4th 2017, 11:37 obinoob *is
# Dec 4th 2017, 11:36 obinoob After submit data goes through the marshal process than it fits validated and finally gets patched I think
# Dec 4th 2017, 11:35 obinoob entity's internals as I said before isNew takes decision on what is new on update and after that patches data with registry's
# Dec 4th 2017, 11:28 hmic how does an edit work anyways? - just a simple example, one table in a form, no associations? whats the difference in that paricular - easy form between add and edit?
# Dec 4th 2017, 11:28 obinoob Not sure really
# Dec 4th 2017, 11:27 hmic edit does not, why?
# Dec 4th 2017, 11:27 hmic add works ok
# Dec 4th 2017, 11:27 hmic i'm talking about your current form
# Dec 4th 2017, 11:26 obinoob When updating it replaces the previous registries
# Dec 4th 2017, 11:26 obinoob When adding if I don't fill the hasMany I get null for the first entry and a SQL exception right on
# Dec 4th 2017, 11:24 hmic - actually i'm pretty certain to know whats wrong with your setup already, but lets see if you can find the culprit yourself...
# Dec 4th 2017, 11:23 hmic what happens if you don't validate?
# Dec 4th 2017, 11:22 obinoob Validation complain about duplicate
# Dec 4th 2017, 11:20 obinoob The problem I have found is that after pulling registry from database the form fields get nicely filled with correct data but after submitting
# Dec 4th 2017, 11:19 hmic sure
# Dec 4th 2017, 11:18 obinoob hmic I haven't seen a single example on how to update hasMany but from what I have read patchEntity internals such as isNew can handle it...
# Dec 4th 2017, 10:58 hmic obinoob, that is how it is. your local client does echo the message, not the server back to you. and yes, it just gets truncated (on transmit) so the server has nothing to complain. smart clients know the limits and split up messages by themselves
# Dec 4th 2017, 10:52 obinoob hmic sorry for that, but that is kinda strange I can see my message complete and haven't received any complain from server...
# Dec 4th 2017, 10:48 obinoob https://gist.github.com/obinoob/9668db682997c3175ccca2b0a24de257
# Dec 4th 2017, 10:47 hmic obinoob, your text exeeded maximum length on irc, so it got truncated in your github link
# Dec 4th 2017, 10:46 obinoob *value