# |
Jun 27th 2017, 08:11 |
savant |
`$this->Users->Jobs->find()->where(['herp' => 'derp'])->all()` |
# |
Jun 27th 2017, 08:11 |
adriencs |
so I can target any `Jobs` not matter the `job_id` of my `Users` ? |
# |
Jun 27th 2017, 08:10 |
savant |
its just a way for you to get a reference to the other table |
# |
Jun 27th 2017, 08:10 |
savant |
you’re not actually querying for anything by doing just Table chaining |
# |
Jun 27th 2017, 08:10 |
savant |
thats just tables being related to each other |
# |
Jun 27th 2017, 08:10 |
savant |
no |
# |
Jun 27th 2017, 08:09 |
adriencs |
what's behind this ? it's a kind of autoquery/join ? |
# |
Jun 27th 2017, 08:09 |
savant |
yes |
# |
Jun 27th 2017, 08:09 |
adriencs |
`$this->Users->Jobs->...` still exist in 3.X ? |
# |
Jun 27th 2017, 08:04 |
jojomartius |
haha that looks simple... thanks ;) |
# |
Jun 27th 2017, 08:03 |
savant |
pretty sure it’ll just treat it as a sequel fragment |
# |
Jun 27th 2017, 08:03 |
savant |
instead of the array syntax |
# |
Jun 27th 2017, 08:03 |
savant |
use that |
# |
Jun 27th 2017, 08:03 |
savant |
“`parent_id = id"` |
# |
Jun 27th 2017, 08:03 |
jojomartius |
hi all ;) i've a pretty simple cakephp 3 ORM question. How can i search for items where *parent_id* is equals *id*? tried it with ->where(['parent_id'=>'id']); but it seams like now its looking for entries with *parent_id* equals *"id"*. |
# |
Jun 27th 2017, 08:00 |
hmic |
moin |
# |
Jun 27th 2017, 07:55 |
sathomsen |
Morning ;) |
# |
Jun 27th 2017, 07:47 |
brettl |
hey man |
# |
Jun 27th 2017, 07:45 |
dakota |
Morning |
# |
Jun 27th 2017, 07:44 |
brettl |
hey dude |
# |
Jun 27th 2017, 07:43 |
neon1024 |
Morning everyone |
# |
Jun 27th 2017, 07:32 |
brettl |
the hardest part of coding |
# |
Jun 27th 2017, 07:32 |
brettl |
documentation is never easy |
# |
Jun 27th 2017, 07:32 |
savant |
good docs == hard |
# |
Jun 27th 2017, 07:32 |
savant |
documentation always needs help |
# |
Jun 27th 2017, 07:32 |
savant |
the core is one place |
# |
Jun 27th 2017, 07:32 |
brettl |
i really want to get more involved and helping where i can and that is my aim |
# |
Jun 27th 2017, 07:32 |
brettl |
and that is the way it started |
# |
Jun 27th 2017, 07:32 |
savant |
so I was like “give me a bit, let me see how hard this is” |
# |
Jun 27th 2017, 07:31 |
savant |
and I looked, told them no, and they were sad |
# |
Jun 27th 2017, 07:31 |
savant |
i think someone asked in chat if cakephp supported it |
# |
Jun 27th 2017, 07:29 |
savant |
the issue was open since 2009 |
# |
Jun 27th 2017, 07:29 |
brettl |
when i was working at Striata, we had a guy who used some weird editor and some how corrupted the line endings and broke our build for the life of me for two days could not figure out why the build broke |
# |
Jun 27th 2017, 07:29 |
savant |
and I was bored |
# |
Jun 27th 2017, 07:28 |
savant |
it was an open issue *foreveR* |
# |
Jun 27th 2017, 07:28 |
savant |
this one was pretty easy: https://github.com/cakephp/cakephp/pull/8488 |
# |
Jun 27th 2017, 07:28 |
savant |
(active for 3.x dev, tons were still doing 2.x work) |
# |
Jun 27th 2017, 07:28 |
savant |
like half the active core team lmao |
# |
Jun 27th 2017, 07:28 |
brettl |
that is always fun a multi merge and then issues |
# |
Jun 27th 2017, 07:28 |
savant |
also I wasnt even the only one working on it |
# |
Jun 27th 2017, 07:27 |
savant |
took like 60 commits to get it right |