Log message #4020993

# At Username Text
# Apr 28th 2017, 13:30 dereuromark Has anyone experiene/insights with http://alistair.cockburn.us/Hexagonal+architecture and (Cake)PHP?
# Apr 28th 2017, 13:27 grandfelix @btx thanks. Will take a look
# Apr 28th 2017, 13:02 btx just realized you’re selecting from the same table
# Apr 28th 2017, 13:01 btx @grandfelix you could also do a contain, and in the contain, sort by created DESC and do limit 1 since technically you’re not selecting any of the related fields
# Apr 28th 2017, 12:59 btx @grandfelix check out https://book.cakephp.org/3.0/en/orm/query-builder.html#using-sql-functions specifically scroll down (just past the list of functions ending with `dayOfWeek`) to the example about selecting concat with inner join. I think that will help
# Apr 28th 2017, 12:57 iqu hmm. which one is better. create 2 foreign keys / belongsTo or virtual fields via Entity?
# Apr 28th 2017, 12:50 admad ->context()->entity()->getSource() is the right way
# Apr 28th 2017, 12:49 rchavik list($junk, $model) = pluginSplit($modelSource);
# 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