# |
Apr 17th 2019, 09:31 |
dereuromark |
Relations are close to the table names, so always plural as well. |
# |
Apr 17th 2019, 09:29 |
slackebot |
`hasMany` to that same table (happened with an Opencart database), the aliases won't conflict. |
# |
Apr 17th 2019, 09:29 |
mehov |
Hey guys, I have a best-practices question (please let me know if this is not a good place to ask these) Defining a belongsTo in a table class. Should I name it in plural or singular? I.e. `$this->belongsTo('Article')` or`$this->belongsTo('Articles')`? [Docs](https://book.cakephp.org/3.0/en/intro/conventions.html) say table class names have to be plural, but this is not really a table class though. My logic is if I later need to add a |
# |
Apr 17th 2019, 09:26 |
dereuromark |
Stop it neon, you know better.. |
# |
Apr 17th 2019, 09:24 |
neon1024 |
Also @dereuromark do remember that not everyone knows all your websites, blogs and plugins. Being helpful isn’t spoonfeeding, especially in a support channel. Careful you don’t come across as condescending or arrogant :slightly_smiling_face: |
# |
Apr 17th 2019, 09:23 |
dereuromark |
feel free to add some sandbox examples for this specific lib |
# |
Apr 17th 2019, 09:23 |
neon1024 |
I’m going to use Selectize, so need to do some processing anyway :slightly_smiling_face: |
# |
Apr 17th 2019, 09:22 |
thuyhyvg |
How to call back API using cakephp 2.x ? |
# |
Apr 17th 2019, 09:10 |
dereuromark |
actually # Spoonfeeding : https://sandbox.dereuromark.de/sandbox/tags/select |
# |
Apr 17th 2019, 09:08 |
dereuromark |
4.x is basically a cleanup from 3.x, no functionally relevant changes to this. |
# |
Apr 17th 2019, 09:08 |
dereuromark |
This has nothing to do with 4.x |
# |
Apr 17th 2019, 09:07 |
dereuromark |
I told you where to find the answer. If you wanna still do dances, be my guest :slightly_smiling_face: |
# |
Apr 17th 2019, 09:07 |
neon1024 |
I don’t really have the energy for this dance right now |
# |
Apr 17th 2019, 09:07 |
neon1024 |
I’ll figure it out |
# |
Apr 17th 2019, 09:06 |
dereuromark |
The code in form would not be different either way. |
# |
Apr 17th 2019, 09:06 |
dereuromark |
Check my wording |
# |
Apr 17th 2019, 09:06 |
dereuromark |
I didnt say you should use it. |
# |
Apr 17th 2019, 09:06 |
neon1024 |
No harm in implementing something myself |
# |
Apr 17th 2019, 09:05 |
neon1024 |
Besides, I’m testing the 4.0.0-alpha1. Using a plugin won’t really test the core much |
# |
Apr 17th 2019, 09:05 |
dereuromark |
it still answers your question |
# |
Apr 17th 2019, 09:05 |
neon1024 |
;) |
# |
Apr 17th 2019, 09:05 |
neon1024 |
So no then |
# |
Apr 17th 2019, 09:05 |
dereuromark |
well, the change to support it should be rather trivial |
# |
Apr 17th 2019, 09:05 |
neon1024 |
Does it support 4.0.0? |
# |
Apr 17th 2019, 09:05 |
dereuromark |
or reinvent the wheel |
# |
Apr 17th 2019, 09:04 |
dereuromark |
you could check my tags plugin :slightly_smiling_face: |
# |
Apr 17th 2019, 09:04 |
neon1024 |
Stupid question, but my brain won’t tell me. I have `Questions hasMany Tagged belongsTo Tags` and I’m trying to figure out how to create the correct form element to marshall a multi select |
# |
Apr 17th 2019, 08:11 |
admad |
long time ago |
# |
Apr 17th 2019, 08:11 |
neon1024 |
Has Rob Morgan stopped working on it entirely? |
# |
Apr 17th 2019, 08:10 |
dereuromark |
the migrations plugin and especially phinx really lacks a lead dev of some sorts.. |
# |
Apr 17th 2019, 08:09 |
admad |
i did a master -> 3.next -> 4.x merge earlier today :slightly_smiling_face: |
# |
Apr 17th 2019, 08:08 |
neon1024 |
Oh, I was quite behind. Good shout, thanks! |
# |
Apr 17th 2019, 08:05 |
neon1024 |
Okay |
# |
Apr 17th 2019, 08:03 |
admad |
@neon1024 update upstream 4.x |
# |
Apr 17th 2019, 08:03 |
dereuromark |
A cleaner API in general will make static analyzers happy. All these dirty something|false returns, all these super-mixed ones |
# |
Apr 17th 2019, 07:58 |
neon1024 |
That’ll make PHP Stan happy |
# |
Apr 17th 2019, 07:58 |
neon1024 |
Exciting! Seems there are a few more tweaks to bake then |
# |
Apr 17th 2019, 07:57 |
admad |
yes |
# |
Apr 17th 2019, 07:55 |
neon1024 |
Soo, is that right? The new `dev-next` coding standard requires strict types? |
# |
Apr 17th 2019, 07:54 |
admad |
it's just a CS error, i'll fix it separately |
# |
Apr 17th 2019, 07:54 |
admad |
i know how to whip it into compliance :P |