# |
Jul 13th 2017, 22:50 |
savant |
https://book.cakephp.org/3.0/en/orm/query-builder.html |
# |
Jul 13th 2017, 22:49 |
savant |
just subqueries |
# |
Jul 13th 2017, 22:49 |
savant |
https://book.cakephp.org/3.0/en/orm/retrieving-data-and-resultsets.html#fetching-with-the-subquery-strategy |
# |
Jul 13th 2017, 22:49 |
savant |
ah |
# |
Jul 13th 2017, 22:49 |
nicolas.r |
select sql |
# |
Jul 13th 2017, 22:49 |
nicolas.r |
misunderstood |
# |
Jul 13th 2017, 22:49 |
savant |
and when it changes, it inserts the second select dropdown or modifies it with the data you want |
# |
Jul 13th 2017, 22:48 |
nicolas.r |
oh sorry |
# |
Jul 13th 2017, 22:48 |
savant |
i mean you have some javascript that listens to the onChange for the first select |
# |
Jul 13th 2017, 22:48 |
nicolas.r |
jsut js integration to do subselect ? :thinking_face: |
# |
Jul 13th 2017, 22:47 |
savant |
thats usually just js integration |
# |
Jul 13th 2017, 22:47 |
savant |
we dont have anything specific to cakephp |
# |
Jul 13th 2017, 22:46 |
nicolas.r |
it's subselect ? |
# |
Jul 13th 2017, 22:46 |
nicolas.r |
yeah |
# |
Jul 13th 2017, 22:46 |
savant |
you want to do dynamic selects based on previous ones? |
# |
Jul 13th 2017, 22:46 |
nicolas.r |
do you know how to do a subselect with cake ? |
# |
Jul 13th 2017, 22:46 |
nicolas.r |
subselect |
# |
Jul 13th 2017, 22:46 |
nicolas.r |
you do a select and another select into |
# |
Jul 13th 2017, 22:46 |
nicolas.r |
humm.. |
# |
Jul 13th 2017, 22:46 |
nicolas.r |
i dont know the word in englsih for this ... |
# |
Jul 13th 2017, 22:45 |
nicolas.r |
@savant tell me, maybe you can help me |
# |
Jul 13th 2017, 22:43 |
nicolas.r |
:slightly_smiling_face: |
# |
Jul 13th 2017, 22:42 |
savant |
probably |
# |
Jul 13th 2017, 22:42 |
nicolas.r |
anyone is here ? |
# |
Jul 13th 2017, 22:40 |
nicolas.r |
yo |
# |
Jul 13th 2017, 22:24 |
nblade42 |
What help? |
# |
Jul 13th 2017, 22:21 |
dvd_ |
I NEED HELP |
# |
Jul 13th 2017, 22:20 |
dvd_ |
oi |
# |
Jul 13th 2017, 21:03 |
dvd_ |
hello |
# |
Jul 13th 2017, 19:43 |
jarard01 |
$e->subject->query->contain(['Offers']); |
# |
Jul 13th 2017, 19:43 |
jarard01 |
i got it: |
# |
Jul 13th 2017, 19:40 |
jarard01 |
something like: $e->query->contain(['Offers']); |
# |
Jul 13th 2017, 19:39 |
jarard01 |
how do i add a contain to the beforeFind of the CRUD plugin |
# |
Jul 13th 2017, 18:24 |
hmic |
so you know where to look at |
# |
Jul 13th 2017, 18:23 |
ericadeefox |
in the tests for the sdk itself, they do exactly what I tried to do, in my own tests, to recreate the plugin's behavior--and yet for some reason kept getting exceptions thrown at me |
# |
Jul 13th 2017, 18:21 |
hmic |
build a mock. |
# |
Jul 13th 2017, 18:21 |
mikesmoniker |
I’m afraid I’m not familiar with either of those libs, but I’d expect there to be something you can swap out (via config or dependency inversion) to test *your* code without actually modifying said code. |
# |
Jul 13th 2017, 18:21 |
ericadeefox |
again, I know, I wouldn't be asking if I had found a way to successfully recreate this plugin's behavior. |
# |
Jul 13th 2017, 18:20 |
hmic |
ericadeefox: it should not. you should mock the things that need special handling during tests. NOT implement different behavior during testing! |
# |
Jul 13th 2017, 18:20 |
mikesmoniker |
Have you looked at the tests for the plugin and SDK themselves to see how they might approach a similar problem? |
# |
Jul 13th 2017, 18:19 |
ericadeefox |
since the thing I'm verifying *does* behave conditionally depending on whether it's being tested, it seems appropriate. I am so spent on Facebook's SDK. it screwed up 100% of my integration tests. |