# |
Apr 27th 2017, 14:17 |
Lurdekan |
megan: He was just patronizing, didn't properly read the question, nor did understand it. He should have at least asked for more info before tolding me to repeat pointless steps |
# |
Apr 27th 2017, 14:15 |
megan |
lurdekan, Neon1024 was just trying to be helpful and he is a super awesome community member! :slightly_smiling_face: Never hurts to check the docs again or to try google/SO again or wait to see if there is anyone else who may have a different answer |
# |
Apr 27th 2017, 14:14 |
Lurdekan |
megan: It's the typical kind of kid that doesn't even properly reads the question before answering |
# |
Apr 27th 2017, 14:13 |
Lurdekan |
megan: he told me to check docs. that isn't helpful, I clearly said I checked all the docs |
# |
Apr 27th 2017, 14:11 |
megan |
Lurdekan - maybe also post a question on discourse and if someone else maybe has a better answer for you they can post it there (that may not be online atm) |
# |
Apr 27th 2017, 14:11 |
Lurdekan |
Neon1024: I had done that already |
# |
Apr 27th 2017, 14:11 |
Lurdekan |
Neon1024: Telling someone to check the docs again, looking at the debugkit, or the source code is also being a dickhead |
# |
Apr 27th 2017, 14:11 |
megan |
Thanks for helping Neon1024 |
# |
Apr 27th 2017, 14:10 |
Neon1024 |
!askhole |
# |
Apr 27th 2017, 14:10 |
Neon1024 |
Geez. |
# |
Apr 27th 2017, 14:10 |
Neon1024 |
I’m trying. |
# |
Apr 27th 2017, 14:10 |
Neon1024 |
Jut because you don’t like the answer dont’ throw it in my face |
# |
Apr 27th 2017, 14:10 |
Neon1024 |
I tried to help |
# |
Apr 27th 2017, 14:10 |
Neon1024 |
Don’t be a dickhead. |
# |
Apr 27th 2017, 14:10 |
Neon1024 |
Fuck off |
# |
Apr 27th 2017, 14:10 |
Lurdekan |
Neon1024: If you don't understand the question, nor have the answer, don't bother replying |
# |
Apr 27th 2017, 14:09 |
Neon1024 |
->sql() |
# |
Apr 27th 2017, 14:09 |
sms82ar |
Neon, declaring my own index worked. Thanks a lot! |
# |
Apr 27th 2017, 14:09 |
Neon1024 |
No idea then, good luck. |
# |
Apr 27th 2017, 14:09 |
Lurdekan |
Neon1024: But I wanted to do with one |
# |
Apr 27th 2017, 14:09 |
Lurdekan |
Neon1024: I explicitly said that I can do that with 2 queries |
# |
Apr 27th 2017, 14:09 |
Neon1024 |
If you’re trying to pre-optimise before you have code which works, then you’re wasting your own time |
# |
Apr 27th 2017, 14:09 |
Lurdekan |
Neon1024: that still leaves me with 2 queries |
# |
Apr 27th 2017, 14:09 |
Neon1024 |
So do that first |
# |
Apr 27th 2017, 14:08 |
Lurdekan |
Neon1024: In this case the parameter was not fetched yet |
# |
Apr 27th 2017, 14:08 |
Neon1024 |
->find(‘published’, [‘date’ => $date]) |
# |
Apr 27th 2017, 14:08 |
Neon1024 |
I usually just pass the array that I need |
# |
Apr 27th 2017, 14:07 |
Neon1024 |
No idea, I’ve never had to do that |
# |
Apr 27th 2017, 14:07 |
Lurdekan |
Neon1024: My question was exactly if there's any way to properly set the array option for a custom finder in the association's definition |
# |
Apr 27th 2017, 14:07 |
Lurdekan |
Neon1024: The finder still needs a proper set $option array |
# |
Apr 27th 2017, 14:07 |
sms82ar |
Thanks Neon, I'll try again to write my own by just declaring it, when I did it before It didn't return the results from the query so I figured I messed up |
# |
Apr 27th 2017, 14:06 |
Neon1024 |
Sounds like you need to use a finder then |
# |
Apr 27th 2017, 14:05 |
Lurdekan |
Neon1024: That doc I know very well, the conditions key doesnt allow for you to pass parameters from the original containing row |
# |
Apr 27th 2017, 14:05 |
Neon1024 |
Or write your own Crud action class |
# |
Apr 27th 2017, 14:05 |
Neon1024 |
Crud will only execute if a controller method is missing, or you ask it to in your method |
# |
Apr 27th 2017, 14:04 |
Neon1024 |
Just write your own then |
# |
Apr 27th 2017, 14:04 |
sms82ar |
I need to modify index action, previous message don't make sense |
# |
Apr 27th 2017, 14:03 |
Neon1024 |
Or go read the source code |
# |
Apr 27th 2017, 14:03 |
Neon1024 |
Just look in DebugKit’s SQL panel |
# |
Apr 27th 2017, 14:03 |
sms82ar |
Hi, I'm using friend's of cake crud plugin but I need to how index action works, particularly the query behind it. Can anyone provide an example of how to achieve this?. I haven't been able to find suitable docs. |
# |
Apr 27th 2017, 14:03 |
Neon1024 |
Associations take a ‘conditions’ key |