# |
Jun 27th 2017, 08:27 |
savant |
Antoniossss: Configure::write(‘App.fullBaseUrl’, ‘https://example.com') |
# |
Jun 27th 2017, 08:26 |
Antoniossss |
as it is resolving to localhost right now |
# |
Jun 27th 2017, 08:26 |
Antoniossss |
I am sending a templated email after user creation. That is done from CLI. Template uses URL helper to generate activation link. How to set base url for Router in CLI app? |
# |
Jun 27th 2017, 08:25 |
savant |
night all! |
# |
Jun 27th 2017, 08:25 |
Antoniossss |
Hey there |
# |
Jun 27th 2017, 08:22 |
sebollson |
hey there |
# |
Jun 27th 2017, 08:14 |
adriencs |
fine, thanks alot |
# |
Jun 27th 2017, 08:14 |
savant |
whichever you prefer |
# |
Jun 27th 2017, 08:13 |
savant |
but meh |
# |
Jun 27th 2017, 08:13 |
savant |
i mean its not lazy |
# |
Jun 27th 2017, 08:13 |
savant |
yeah |
# |
Jun 27th 2017, 08:13 |
adriencs |
ok, so chaining table is just for lazy*ss who don't what to `$this->loadModel('Jobs')` ? :) |
# |
Jun 27th 2017, 08:12 |
savant |
has nothing to do with Users other than that you got a references to the `Jobs` table class via Table object chaining |
# |
Jun 27th 2017, 08:12 |
savant |
thats basically what it generates |
# |
Jun 27th 2017, 08:12 |
savant |
`select * jobs where herp = 'derp'` |
# |
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 |