# |
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 |
# |
Dec 4th 2017, 10:45 |
obinoob |
Hi, I been fighting ORM associations for a while now and I would like to move on but actually knowing something of valve! I have tried several approaches but none proved to work in particular when inserting/updating hasMany registries in database. According to the documents it should be easy... so after countless hours of reading + trial and error experiences upgrades downgrades etc I hope I can have your attention please read my gist https://gist.github.c |
# |
Dec 4th 2017, 10:18 |
inoas |
I need to switch places, - be back in 5-10min |
# |
Dec 4th 2017, 10:18 |
inoas |
but that's the 2nd step |
# |
Dec 4th 2017, 10:18 |
inoas |
(based on sha1 or something) |
# |
Dec 4th 2017, 10:18 |
inoas |
(recommend is immutable uuids) |
# |
Dec 4th 2017, 10:18 |
inoas |
and that's not recommended practise |
# |
Dec 4th 2017, 10:17 |
inoas |
cause assetUrl() creates query string cache busting |
# |
Dec 4th 2017, 10:17 |
inoas |
I ll also need to do some rewrites in a second step |
# |
Dec 4th 2017, 10:17 |
inoas |
well that would be okay too if I can handle it at apache .htaccess level |
# |
Dec 4th 2017, 10:16 |
hmic |
so really static content, without a cake request cycle at all |
# |
Dec 4th 2017, 10:16 |
inoas |
because some optimization tools complain (and rightly so) that for static assets there is no need to send cookie overhead |
# |
Dec 4th 2017, 10:15 |
inoas |
and only answers to some webroot folders like /assets /files /media etc |
# |
Dec 4th 2017, 10:15 |
inoas |
but via a different domain, that does not set a session |
# |
Dec 4th 2017, 10:15 |
inoas |
I just want to run static content off the same web server |
# |
Dec 4th 2017, 10:15 |
inoas |
huh what? |
# |
Dec 4th 2017, 10:15 |
hmic |
inoas, static content vs. no session - so no individual content is 2 different beasts |
# |
Dec 4th 2017, 10:14 |
inoas |
Cake\Network\Session::start() seems to start it |
# |
Dec 4th 2017, 10:13 |
inoas |
(for a domain like static.DOMAIN.tld) |
# |
Dec 4th 2017, 10:13 |
inoas |
What's the best practise / how to disable Cakephp3 sessions |
# |
Dec 4th 2017, 09:37 |
jkpatel291289 |
hi, i want to add where user_id = current_userid in all find() calls,what is the right way to do this? |
# |
Dec 4th 2017, 09:27 |
dereuromark |
@thomasnucleus I have once written sth: https://www.dereuromark.de/2012/12/15/user-switch-for-cakephp-apps/ |