# |
Mar 2nd 2018, 09:19 |
neon1024 |
I’m hoping to attend Cakefest, I’ve submitted 3 talks, so hopefully something is of interest to the cake community :) |
# |
Mar 2nd 2018, 09:01 |
johan |
Hm... I'll give it some thought ;) |
# |
Mar 2nd 2018, 09:01 |
megan |
also @johan why dont you submit a talk? CFP is open until 15th March |
# |
Mar 2nd 2018, 09:00 |
megan |
have to try! :) also - the EB rates are up, wont be there for long ;) (full prices will be from 1 April ish....) |
# |
Mar 2nd 2018, 08:59 |
johan |
Would love to, but might be difficult to convince the powers that be :P |
# |
Mar 2nd 2018, 08:58 |
megan |
so who's coming to CakeFest this year? :cakephp::parrotparty: |
# |
Mar 2nd 2018, 08:49 |
neon1024 |
Morning from snowy Britain! |
# |
Mar 2nd 2018, 08:10 |
pidlo |
associated array |
# |
Mar 2nd 2018, 08:10 |
pidlo |
i found this select(['virtual'=>'name'] thanks for time.. |
# |
Mar 2nd 2018, 08:05 |
pidlo |
by orm? |
# |
Mar 2nd 2018, 08:04 |
pidlo |
is not possible do this? RemovalStates.name AS `RemovalStates__vitrual`, |
# |
Mar 2nd 2018, 08:00 |
johan |
Speaking under correction, but I don't think you can `select` virtual fields. `select` is generally just for columns that are in the database, or for aliases. |
# |
Mar 2nd 2018, 07:55 |
pidlo |
what i do wrong? |
# |
Mar 2nd 2018, 07:54 |
pidlo |
but in object virtual is filled .. |
# |
Mar 2nd 2018, 07:54 |
pidlo |
hello all i would set virtual field and use it .. i write Entity class but if use find function i have not in select |
# |
Mar 2nd 2018, 06:56 |
savant |
morning morning |
# |
Mar 2nd 2018, 06:56 |
megan |
Morning everyone! :) |
# |
Mar 2nd 2018, 06:17 |
savant |
https://github.com/josegonzalez/cakephp-queuesadilla/ <-- :slightly_smiling_face: |
# |
Mar 2nd 2018, 06:17 |
savant |
@turkles but you can use background jobs :slightly_smiling_face: |
# |
Mar 2nd 2018, 06:17 |
savant |
Nah |
# |
Mar 2nd 2018, 04:04 |
turkles |
My shell basically grabs different (somewhat related) data from an external API, I have a behaviour set up to perform the 'fetch'. Can you do a dispatch shell from a behaviour? Because that might work, a second behaviour |
# |
Mar 2nd 2018, 03:57 |
ricksaccous |
oh yeah that's a good idea too |
# |
Mar 2nd 2018, 03:57 |
rchavik |
you can use Behaviours |
# |
Mar 2nd 2018, 03:52 |
ricksaccous |
now that i read your use case again, i would think |
# |
Mar 2nd 2018, 03:52 |
ricksaccous |
actually trait is the best |
# |
Mar 2nd 2018, 03:52 |
ricksaccous |
or still extend AppModel and only use it there so it's available everywhere |
# |
Mar 2nd 2018, 03:52 |
ricksaccous |
or create a trait like ShellAwareTrait and use it |
# |
Mar 2nd 2018, 03:51 |
ricksaccous |
or do a use statement in the model with the shell class rather |
# |
Mar 2nd 2018, 03:51 |
ricksaccous |
just create a shell class and use it in the model |
# |
Mar 2nd 2018, 03:50 |
turkles |
it's in a shell, the stuff I need will call other shells too |
# |
Mar 2nd 2018, 03:50 |
ricksaccous |
and do it that way |
# |
Mar 2nd 2018, 03:50 |
ricksaccous |
you can have all your table models extend an AppTable class |
# |
Mar 2nd 2018, 03:48 |
turkles |
yes.. 3.4 I think |
# |
Mar 2nd 2018, 03:48 |
ricksaccous |
are you using cakephp3? |
# |
Mar 2nd 2018, 03:47 |
turkles |
Hi all, I want to create a function which can be re-used in my shell for different models.. what is this called so I can find in the docs? eg. I want to be able to do $this->$modelname->function() rather than naming the modelname |
# |
Mar 2nd 2018, 01:44 |
ricksaccous |
i should have read the middleware section of the book |
# |
Mar 2nd 2018, 01:43 |
ricksaccous |
i fixed it ;) |
# |
Mar 2nd 2018, 01:42 |
ricksaccous |
gawddddd |
# |
Mar 2nd 2018, 01:42 |
ricksaccous |
heh it's the error handling middleware |
# |
Mar 2nd 2018, 01:31 |
ricksaccous |
I'm going to give up on this for now |
# |
Mar 2nd 2018, 01:26 |
ricksaccous |
nah, same problem, same place |