# |
Apr 26th 2017, 10:37 |
Neon1024 |
It’s easier to change your IDE than your codebase |
# |
Apr 26th 2017, 10:37 |
Neon1024 |
Forming good code should paramount though |
# |
Apr 26th 2017, 10:37 |
inoas |
Code Style should not impose IDE as a hard requirement |
# |
Apr 26th 2017, 10:37 |
inoas |
anyway, I suspect it will get removed for 4.x |
# |
Apr 26th 2017, 10:37 |
Neon1024 |
You tools should not define your code style. |
# |
Apr 26th 2017, 10:36 |
inoas |
it is also very clear to see when calling |
# |
Apr 26th 2017, 10:36 |
inoas |
Neon1024: The core teams excuse is that it’s easier to see in Vim <= I am with the core team here |
# |
Apr 26th 2017, 10:35 |
inoas |
can I somehow sane access the user's browser language (request object) in my custom router? |
# |
Apr 26th 2017, 10:26 |
birdy247 |
but then I am stuck |
# |
Apr 26th 2017, 10:26 |
birdy247 |
I then pass the entity back |
# |
Apr 26th 2017, 10:26 |
birdy247 |
so my class is doing the ->set('property', arrayOfValues) |
# |
Apr 26th 2017, 10:25 |
birdy247 |
ok |
# |
Apr 26th 2017, 10:25 |
Neon1024 |
Well if you’re parsing associations you can use foreach ($table->associations() as $type => $name) { iirc |
# |
Apr 26th 2017, 10:24 |
birdy247 |
but I cant save |
# |
Apr 26th 2017, 10:24 |
birdy247 |
its updating the entities |
# |
Apr 26th 2017, 10:24 |
Neon1024 |
But for writing PHP without a truck load of plugins and configuration it’s not helpful ‘out of the box' |
# |
Apr 26th 2017, 10:24 |
birdy247 |
I mean the gist I sent |
# |
Apr 26th 2017, 10:23 |
Neon1024 |
I should qualify that Vim isn’t crap |
# |
Apr 26th 2017, 10:23 |
Neon1024 |
I shall go contribute to open source |
# |
Apr 26th 2017, 10:23 |
Neon1024 |
I wish I had some work to do |
# |
Apr 26th 2017, 10:23 |
Neon1024 |
Buzz in when you see it |
# |
Apr 26th 2017, 10:23 |
Neon1024 |
Baking in the wrong oven you mean? |
# |
Apr 26th 2017, 10:22 |
birdy247 |
I am not sure if I am barking up the wrong tree |
# |
Apr 26th 2017, 10:22 |
Neon1024 |
Yes, write bad code because you use crap tooling |
# |
Apr 26th 2017, 10:22 |
birdy247 |
but what about the rest of the code |
# |
Apr 26th 2017, 10:22 |
Neon1024 |
Which is utter crap imho |
# |
Apr 26th 2017, 10:22 |
Neon1024 |
The core teams excuse is that it’s easier to see in Vim |
# |
Apr 26th 2017, 10:22 |
birdy247 |
ill do that |
# |
Apr 26th 2017, 10:22 |
birdy247 |
ok |
# |
Apr 26th 2017, 10:22 |
Neon1024 |
I just really think it’s time to let PHP4 go |
# |
Apr 26th 2017, 10:22 |
birdy247 |
lol |
# |
Apr 26th 2017, 10:21 |
Neon1024 |
It’s just an opinion |
# |
Apr 26th 2017, 10:21 |
Neon1024 |
Because of that I can’t invest in your business idea. I’m sorry, I’m out. |
# |
Apr 26th 2017, 10:21 |
birdy247 |
ok, ill fix that |
# |
Apr 26th 2017, 10:21 |
Neon1024 |
#letitgo |
# |
Apr 26th 2017, 10:20 |
Neon1024 |
birdy247, Prefixing private with an underscore is a PHP4 convention. That’s three whole major versions ago #justsayin |
# |
Apr 26th 2017, 10:19 |
steinkel |
deleted_date should be datetime |
# |
Apr 26th 2017, 10:15 |
backstageel |
In CakeDC/Utils plugin for cake2, what should be the data types for deleted and deleted_date for softdelete? |
# |
Apr 26th 2017, 10:13 |
birdy247 |
and I dont know how to then save that |
# |
Apr 26th 2017, 10:13 |
birdy247 |
The problem is it returns a Merge object |
# |
Apr 26th 2017, 10:12 |
birdy247 |
https://gist.github.com/anonymous/9ed65405295527e90ab059572abbf83b |