Log message #4020985

# At Username Text
# Apr 28th 2017, 12:49 rchavik $modelSource = $this->Form->context()->entity()->getSource();
# Apr 28th 2017, 12:49 rchavik i hack it this way instead:
# Apr 28th 2017, 12:49 rchavik i need to create a link on an element with model=Nodesandforeign_key=1, the value of model can change
# Apr 28th 2017, 12:47 admad rchavik: what exactly are you trying to do? :slightly_smiling_face:
# Apr 28th 2017, 12:46 grandfelix I need to create query like this. How I could make join and then subquery with cakephp 3 orm ?
# Apr 28th 2017, 12:45 hippo thanks <3
# Apr 28th 2017, 12:45 steinkel np, you are right
# Apr 28th 2017, 12:45 hippo not a big issue really, was more wondering if I'm just missing the solution, but that's a good idea thanks.
# Apr 28th 2017, 12:44 hippo ahh ok cool, sorry should've checked the issues.
# Apr 28th 2017, 12:44 steinkel meanwhile, you could add the modifications to an element and reuse the element from both templates?
# Apr 28th 2017, 12:44 steinkel we have a feature request to make that easier here https://github.com/CakeDC/users/issues/476
# Apr 28th 2017, 12:43 hippo .The only solution I can see now is to override the template, but then I would have two email layout tempaltes I need to keep track of
# Apr 28th 2017, 12:42 hippo hey guys, I might be missing something but I want to make a plugin (CakeDC Users) email template layout use my apps email layout
# Apr 28th 2017, 12:21 rchavik but protected :(
# Apr 28th 2017, 12:21 rchavik i can get the context from $this->Form->context(), and there's a _rootName property
# Apr 28th 2017, 12:20 rchavik ok
# Apr 28th 2017, 12:18 admad none, it takes the context/model from entity passed to Form::create()
# Apr 28th 2017, 12:16 rchavik is the equivalent of FormHelper::$defaultModel in 3.x?
# Apr 28th 2017, 12:16 rchavik what
# Apr 28th 2017, 12:16 julez in cake2x data validation: are the validation rules applied to the db table fields oder the data fields of the submitted form?
# Apr 28th 2017, 12:15 julez hey
# Apr 28th 2017, 12:08 burzum I guess search is doing the redirect before the other component could store the query params
# Apr 28th 2017, 12:08 burzum Try to change the priority of the plugins. Preserve before Search
# Apr 28th 2017, 12:07 burzum Neon, I don't have trouble with the filters, but I think we use most of the time our ES index and this won't work with the search plugin
# Apr 28th 2017, 11:43 burzum We have translateable URLs... yet another PITA
# Apr 28th 2017, 11:43 Neon1024 Righto!
# Apr 28th 2017, 11:43 burzum Create a ticket please, I'm, in the middle of a fucking routing issue right now :(
# Apr 28th 2017, 11:43 Neon1024 Perhaps the Search.Prg component is interacting with it
# Apr 28th 2017, 11:42 Neon1024 burzum, I’m having real trouble following the code though so that I can have the filter update when it changes.
# Apr 28th 2017, 11:37 grandfelix I need to create query like this. How I could make join and then subquery with cakephp 3 orm ?
# Apr 28th 2017, 11:36 grandfelix hi
# Apr 28th 2017, 11:27 inoas which is btw really a bad name... should be label or displayField ... keyField is really the value - IMHO
# Apr 28th 2017, 11:27 inoas then you just use that as valueField
# Apr 28th 2017, 11:27 inoas and then apply that to the returned string
# Apr 28th 2017, 11:26 inoas in my $_virtualField with method _getFullDisplayField() I do if ($this->has('user')) {$user = $this->get('user')->get('username');}
# Apr 28th 2017, 11:25 inoas johnwayne formatResults, entities
# Apr 28th 2017, 11:22 inoas build an auto-resolver for browser locales because I am trying to do first-level/true object links (so that they can be translated, controlled-404-ed etc)
# Apr 28th 2017, 11:22 inoas the ORM is pure <3
# Apr 28th 2017, 11:21 inoas it is kind of a bit weirdo interface but it does work <3 :)
# Apr 28th 2017, 11:02 lorenzo good you could figure it out :slightly_smiling_face:
# Apr 28th 2017, 11:02 lorenzo I was on holidays, that’s why I did nt read messages here