Log message #4125895

# At Username Text
# Mar 17th 2018, 14:43 kitcat711 property
# Mar 17th 2018, 14:43 kitcat711 condition is a field of the propert
# Mar 17th 2018, 14:41 jeremyharris or, add a rule for the actual property that has the nested array
# Mar 17th 2018, 14:41 jeremyharris what kind of condition? the nested validation rules could handle those
# Mar 17th 2018, 14:40 kitcat711 i've been trying without success
# Mar 17th 2018, 14:40 kitcat711 using cake 3.5, in $validator is it possible to ->addNested on a condition?
# Mar 17th 2018, 14:39 kitcat711 hello
# Mar 17th 2018, 14:39 bakro.istvan @dereuromark
# Mar 17th 2018, 14:31 spencdev gist it
# Mar 17th 2018, 14:23 Guest74853 hi everyone. i'm having trouble in passing the value of a select control to the controller when form is posted
# Mar 17th 2018, 14:22 dereuromark it should be yeah
# Mar 17th 2018, 14:19 bakro.istvan Is the "pivot" table accessible from these two model/controller?
# Mar 17th 2018, 14:19 bakro.istvan Yes, what I tought. Just to be clear I have users, pics, users_pics table and UsersTable, PicsTable and UsersController, PicsController
# Mar 17th 2018, 14:16 dereuromark this shouldnt delete the linked main records
# Mar 17th 2018, 14:15 dereuromark Simple delete on the pivot table
# Mar 17th 2018, 14:15 bakro.istvan However it brings my next question: How to remove a link?
# Mar 17th 2018, 14:14 bakro.istvan append does work
# Mar 17th 2018, 14:13 adithya *what am i missing?
# Mar 17th 2018, 14:12 adithya *added
# Mar 17th 2018, 14:12 adithya so, i just wanted to ask this! a very beginner question, i just addes the auth component but all my pages are accessible, just wondering what i am missing?
# Mar 17th 2018, 14:10 dereuromark does append strategy work?
# Mar 17th 2018, 14:10 dereuromark ah, so its not a simple habtm
# Mar 17th 2018, 14:05 bakro.istvan "dont repost the payload for the pics, just attach the _ids you wanna save." --> I would post only the _ids, but my join records do have attributes.
# Mar 17th 2018, 13:56 dereuromark same ideas
# Mar 17th 2018, 13:56 dereuromark dont repost the payload for the pics, just attach the _ids you wanna save. tip: look into my tags plugin and how it deals with adding to existing ones.
# Mar 17th 2018, 13:55 bakro.istvan the posted data looks like this: { pics: [ {id: 2, _joinData: {type: "profile"}} ] }
# Mar 17th 2018, 13:54 dereuromark also you can manually add into that table, that way you go around the habtm magic completely
# Mar 17th 2018, 13:54 dereuromark see the docs, you can change the strategy from replace to append
# Mar 17th 2018, 13:53 bakro.istvan I would like to do that, but if I POST the new link to /users/edit/1, the old link will be deleted and only the new will be there. _This action is baked in console._
# Mar 17th 2018, 13:51 dereuromark just add a new entry then in this pivot table
# Mar 17th 2018, 13:50 bakro.istvan sorry, i meant habtm
# Mar 17th 2018, 13:46 dereuromark in this case copy over might be easier now
# Mar 17th 2018, 13:46 dereuromark then you should have used habtm :slightly_smiling_face: a pivot table
# Mar 17th 2018, 13:45 bakro.istvan My users hasmany pics. How can I link/add an already existing pic to a user, without recreating the already existing linking records.
# Mar 17th 2018, 11:28 xinobi does cakephp provides any filter against Host Header Attacks?
# Mar 17th 2018, 11:18 xinobi Is it possible to sort associations with select strategy? https://discourse.cakephp.org/t/sort-from-view-with-when-using-hasone-associations/3976/2
# Mar 17th 2018, 08:24 saeideng `debug($application)`
# Mar 17th 2018, 08:22 admad hoping doesn't always work :slightly_smiling_face: where exactly did you set the var in app controller?
# Mar 17th 2018, 08:17 clementcrown $application was set in the AppController, so I hope, it should be visible in every area of the application
# Mar 17th 2018, 08:17 admad based on the error msg it's obvious that `$application` var is not set
# Mar 17th 2018, 08:14 clementcrown side_menu.ctp is an element and it is rendered in the defult.ctp