# |
Jul 11th 2017, 08:30 |
chris-andre |
Hi. After committing changes in my beta-branch, I have pulled branch to prod. server (not first install). After this, migrations status shows that every migration is _down_. This have not happend before. Any idea? |
# |
Jul 11th 2017, 08:24 |
heter |
@neon1024 i agree :-) |
# |
Jul 11th 2017, 08:23 |
neon1024 |
@heter Well your own code doesn’t have to follow the core standards. I personally don’t like prefixing private/protected methods with an underscore, as it’s a PHP 4 convention. So I don’t do that in my own project code :slightly_smiling_face: |
# |
Jul 11th 2017, 08:23 |
matt |
@cleptric thanks - i'll use patchEntity |
# |
Jul 11th 2017, 08:21 |
cleptric |
And to go further, `newEntity` with passed data and `patchEntity` call the validation |
# |
Jul 11th 2017, 08:21 |
heter |
ye i think overall the accessor one is more preferable by most of people, i just found that this kind of "pattern" is nice for me personally and i did use it on my projects aswell, but when some new developers were looking at my code they were often confused and asked why i didnt follow the global standard |
# |
Jul 11th 2017, 08:20 |
savant |
just always use `__call` done |
# |
Jul 11th 2017, 08:20 |
cleptric |
Chnage the data you pass to patchEntity |
# |
Jul 11th 2017, 08:20 |
cleptric |
@matt ThaT#s the actually behavior |
# |
Jul 11th 2017, 08:20 |
neon1024 |
They’re less confusing :slightly_smiling_face: |
# |
Jul 11th 2017, 08:20 |
neon1024 |
I like accessor methods |
# |
Jul 11th 2017, 08:20 |
cleptric |
I don’t like them personally, but we have quite a few core members that also like them :slightly_smiling_face: |
# |
Jul 11th 2017, 08:19 |
cleptric |
Yeah, this mainly done do enable better type hinting |
# |
Jul 11th 2017, 08:19 |
matt |
Good morning! I'm creating an entity using newEntity() then setting field values manually before saving it. That doesn't appear to be calling validationDefault on the table so no validation is occuring. Is there a way to force the validation check? Thanks |
# |
Jul 11th 2017, 08:19 |
heter |
i really loved them :) |
# |
Jul 11th 2017, 08:19 |
heter |
yep |
# |
Jul 11th 2017, 08:19 |
cleptric |
A, mixed mode methods :slightly_smiling_face: |
# |
Jul 11th 2017, 08:19 |
heter |
basically i meant - setters / getters change |
# |
Jul 11th 2017, 08:19 |
heter |
well maybe i called it wrong |
# |
Jul 11th 2017, 08:18 |
cleptric |
> coding-standards changes? |
# |
Jul 11th 2017, 08:18 |
neon1024 |
CakePHP has had coding standards since 2.x |
# |
Jul 11th 2017, 08:18 |
heter |
im sick and tired of these symfony only lovers which often are blind with all the standards and they can't think outstanding anymore and just follow standards which aren't always best |
# |
Jul 11th 2017, 08:18 |
neon1024 |
I would argue that it already is. |
# |
Jul 11th 2017, 08:17 |
heter |
never used it on big projects but i would love to |
# |
Jul 11th 2017, 08:17 |
heter |
specially for medium sized projects |
# |
Jul 11th 2017, 08:16 |
heter |
i really hope that after cake4 release with all these coding-standards changes people will finally find out that cakephp is really powerfull and developer friendly |
# |
Jul 11th 2017, 08:13 |
david_kim |
simple cakephp better |
# |
Jul 11th 2017, 08:13 |
david_kim |
laravel gave me complicated version dependency hell |
# |
Jul 11th 2017, 08:02 |
savant |
@david_kim if you follow along with each minor 3.x release, you should be in great shape to upgrade to 4.x |
# |
Jul 11th 2017, 08:00 |
heter |
thanks @savant if ill find some interesting weird problem ill let u know |
# |
Jul 11th 2017, 08:00 |
heter |
yep makes sense |
# |
Jul 11th 2017, 08:00 |
savant |
and write the code to send an email |
# |
Jul 11th 2017, 08:00 |
savant |
then `include 'vendor/composer/autoload.php'` (or whatever) |
# |
Jul 11th 2017, 07:59 |
savant |
you can certainly just `composer require cakephp/cakephp` |
# |
Jul 11th 2017, 07:59 |
savant |
@heter we haven’t released it as standalone, but here it is: https://github.com/cakephp/cakephp/tree/master/src/Mailer |
# |
Jul 11th 2017, 07:58 |
david_kim |
@savant ok i understand. |
# |
Jul 11th 2017, 07:58 |
slackebot |
there's also some issue with cake mailer which is not handling some weird case |
# |
Jul 11th 2017, 07:58 |
heter |
@savant continuation of email problem case - so ive downloaded official sendgrid library to try to prove hosting guys that something is wrong with server configuration - but with official library its working on both of servers - with cake its working on one of them and on second one its giving me error - is there somewhere the cakephp3 mailer as a outstanding library so i could prepare like one-file test with same configuration using cakephp3 m |
# |
Jul 11th 2017, 07:58 |
savant |
Does that make sense, @david_kim ? |
# |
Jul 11th 2017, 07:57 |
savant |
but those are *very* rare, and usually related to a severe security issue |
# |
Jul 11th 2017, 07:57 |
savant |
note: there *are* a few cases where we need to remove an interface in a minor release |