# |
Apr 20th 2017, 13:14 |
spriz |
->contain(['Fds', 'Ncds', 'Ipos']); |
# |
Apr 20th 2017, 13:14 |
spriz |
$mf->find() |
# |
Apr 20th 2017, 13:14 |
spriz |
contain does the join if you setup your tables properly |
# |
Apr 20th 2017, 13:13 |
spriz |
when using ->contain() then you should not use join yourself |
# |
Apr 20th 2017, 13:13 |
spriz |
read the link I sent you |
# |
Apr 20th 2017, 13:13 |
nk-sonu |
@spriz join i a requirement here.. but condition is not coming in sql i checked there.. |
# |
Apr 20th 2017, 13:11 |
spriz |
and if you use the contain, remove the ->join() |
# |
Apr 20th 2017, 13:11 |
spriz |
@nk-sonu I said it a few times - just the query doesn't provide enough information to help |
# |
Apr 20th 2017, 13:08 |
nk-sonu |
but i am not getting data of associated tables |
# |
Apr 20th 2017, 13:08 |
nk-sonu |
->contain(['Fds', 'Ncds', 'Ipos']) |
# |
Apr 20th 2017, 13:07 |
inoas |
nk-sonu try what |
# |
Apr 20th 2017, 13:07 |
nk-sonu |
i again try with contain() but no luck |
# |
Apr 20th 2017, 13:01 |
admad |
heh |
# |
Apr 20th 2017, 13:01 |
inoas |
EnableBehavior ;) |
# |
Apr 20th 2017, 13:01 |
inoas |
AbleBehavior |
# |
Apr 20th 2017, 13:00 |
admad |
no behavior is gonna get the silly "able" suffix under my watch :slightly_smiling_face: |
# |
Apr 20th 2017, 12:59 |
inoas |
oh wait... then people delete it after install |
# |
Apr 20th 2017, 12:59 |
inoas |
better name it TrashableBehavior ;)) |
# |
Apr 20th 2017, 12:59 |
spriz |
but indeed it does.. :thinking_face: |
# |
Apr 20th 2017, 12:59 |
inoas |
care to take out the trash :p? |
# |
Apr 20th 2017, 12:59 |
spriz |
:) Not fun! :) |
# |
Apr 20th 2017, 12:59 |
inoas |
especially if it trashes your unit tests :p |
# |
Apr 20th 2017, 12:58 |
inoas |
TrashBehavior has a cool double-meaning |
# |
Apr 20th 2017, 12:58 |
iqu |
inoas: it has been jquery for me too |
# |
Apr 20th 2017, 12:58 |
spriz |
Ah, TrashBehavior whacks up my unit test - any tips on how to avoid loading behaviors but still test the behavior of a afterSave function? :thinking_face: |
# |
Apr 20th 2017, 12:58 |
inoas |
throw it at your frontend, solve all the small things-jquery-style |
# |
Apr 20th 2017, 12:58 |
inoas |
I will take a look at vue! |
# |
Apr 20th 2017, 12:58 |
inoas |
but for a "drop-in" framework like jquery |
# |
Apr 20th 2017, 12:57 |
cleptric |
I heared some good stuff about ember.js Vue is also sth I maybe look into a lit deeper. I just never had the need for a full blown up JS Framework Solving problems by throwing js libs on it feels odd :P |
# |
Apr 20th 2017, 12:57 |
inoas |
which is good, but for our backend stuff we really just want a form builder with one-way data flow - and that's reactjs/jsx/redux/lodash/react-select/marxcss combo for now - and the only thing I'd like to replace is redux for redux-simple ;) |
# |
Apr 20th 2017, 12:57 |
iqu |
inoas: i have not used vuejs in any project yet, it just looks quite simple for simple developer |
# |
Apr 20th 2017, 12:56 |
inoas |
looks more like a jquery replacement |
# |
Apr 20th 2017, 12:56 |
iqu |
dont like js at all. just have to use it once a while |
# |
Apr 20th 2017, 12:56 |
inoas |
https://vuejs.org/v2/guide/transitions.html <= things like that I don't want :p |
# |
Apr 20th 2017, 12:55 |
inoas |
admad yeah but vue has a lot more than just a store, right? :P |
# |
Apr 20th 2017, 12:55 |
admad |
inoas: vue has one way data flow |
# |
Apr 20th 2017, 12:55 |
inoas |
*sigh* |
# |
Apr 20th 2017, 12:55 |
admad |
same here |
# |
Apr 20th 2017, 12:54 |
cleptric |
Yes, I knwo :( I don’t like JS very much… |
# |
Apr 20th 2017, 12:54 |
inoas |
one way flow of data is really really good |
# |
Apr 20th 2017, 12:54 |
admad |
@cleptric you are way behind :) |