# |
Oct 21st 2019, 15:23 |
neon1024 |
HEATHEN |
# |
Oct 21st 2019, 15:23 |
ricksaccous |
of course when i know it's exact type/class everytime i'm more specific |
# |
Oct 21st 2019, 15:22 |
ricksaccous |
especially in cakephp controller actions where it's void or Response |
# |
Oct 21st 2019, 15:22 |
ricksaccous |
in php comments |
# |
Oct 21st 2019, 15:22 |
ricksaccous |
I usually just @return mixed |
# |
Oct 21st 2019, 15:07 |
alexdd55976 |
you would do it autoamtically.. never questioning.. now that someone asked... its all gone :) |
# |
Oct 21st 2019, 15:06 |
neon1024 |
Now I type it, I’m questioning myself |
# |
Oct 21st 2019, 15:06 |
neon1024 |
At least, I think :thinking_face: |
# |
Oct 21st 2019, 15:05 |
neon1024 |
`->render('Plugin.template')` |
# |
Oct 21st 2019, 15:05 |
neon1024 |
Tend to use plugin notation |
# |
Oct 21st 2019, 15:04 |
scuadra |
How can I use viewBuilder() to render a template from a Plugin in cake 3.x? |
# |
Oct 21st 2019, 15:04 |
alexdd55976 |
thanks for nothing |
# |
Oct 21st 2019, 15:04 |
alexdd55976 |
the jerk who coded the application i am writing tests for really made a method, that returns bool on a method that is called in there that returns book. |
# |
Oct 21st 2019, 15:02 |
alexdd55976 |
i never thought about that stuff.. just using it :) |
# |
Oct 21st 2019, 15:01 |
neon1024 |
I could use `notMatching()` I guess |
# |
Oct 21st 2019, 15:01 |
neon1024 |
So I find serial numbers, and filter by associated claims :slightly_smiling_face: |
# |
Oct 21st 2019, 15:01 |
neon1024 |
Here, I want to find a serial number which has not been claimed |
# |
Oct 21st 2019, 15:00 |
alexdd55976 |
then i have no idea |
# |
Oct 21st 2019, 15:00 |
neon1024 |
You’re modifying the matching query conditions |
# |
Oct 21st 2019, 15:00 |
alexdd55976 |
ok |
# |
Oct 21st 2019, 15:00 |
neon1024 |
Yes it can |
# |
Oct 21st 2019, 15:00 |
alexdd55976 |
or can it? |
# |
Oct 21st 2019, 15:00 |
alexdd55976 |
matching "Claim" (model class) ca not be query->where |
# |
Oct 21st 2019, 14:59 |
neon1024 |
:feelsbadman: |
# |
Oct 21st 2019, 14:59 |
neon1024 |
Just updated my documented return to match and removed the return type hint :,( |
# |
Oct 21st 2019, 14:59 |
neon1024 |
:man-shrugging: |
# |
Oct 21st 2019, 14:58 |
alexdd55976 |
@neon1024 i thaught it the return in matching?! |
# |
Oct 21st 2019, 14:57 |
neon1024 |
When `->first()` has a return of `* @return \Cake\Datasource\EntityInterface|array|null The first result from the ResultSet.` |
# |
Oct 21st 2019, 14:57 |
neon1024 |
This doesn’t seem right :thinking_face: |
# |
Oct 21st 2019, 14:52 |
neon1024 |
They haven’t factored in that I’m on holiday for two weeks soon *mwuahaha* |
# |
Oct 21st 2019, 14:51 |
slackebot1 |
<alexdd55976> |
# |
Oct 21st 2019, 14:51 |
alexdd55976 |
u walked right into a trap |
# |
Oct 21st 2019, 14:51 |
ricksaccous |
lol |
# |
Oct 21st 2019, 14:50 |
neon1024 |
He’s suggesting new features to the client |
# |
Oct 21st 2019, 14:50 |
neon1024 |
My boss is fiddling, and scope is a creepin’ |
# |
Oct 21st 2019, 14:50 |
neon1024 |
Now it’s.. not.. |
# |
Oct 21st 2019, 14:50 |
neon1024 |
It *was* a two page website, so I used Slim 4 |
# |
Oct 21st 2019, 14:47 |
ricksaccous |
@neon1024 are you using standalone ORM because you let something else handle the request/responses? |
# |
Oct 21st 2019, 14:46 |
neon1024 |
Ah, sods law. I knew if I asked I’d solve it. As I am using stand-alone orm, the table locator needs to be told both the alias and the class name :face_palm: |
# |
Oct 21st 2019, 14:45 |
neon1024 |
I don’t understand why the `contain()` can’t see that |
# |
Oct 21st 2019, 14:44 |
neon1024 |
I have defined the association in my `SerialNumbersTable` class |