# |
Aug 15th 2019, 15:16 |
scuadra |
What I want to achieve is call patchEntity() to see if there are errors in validation, then I want to do some calculations and based on them to change some fields in the request data and to add some associated data and finally I want to save() |
# |
Aug 15th 2019, 15:13 |
ricksaccous |
@scuadra not necessarily but i don't see why you woul.. yep |
# |
Aug 15th 2019, 15:13 |
steinkel |
@scuadra I don't see a problem, maybe merge all the data first and call pathEntity once? |
# |
Aug 15th 2019, 15:12 |
steinkel |
np |
# |
Aug 15th 2019, 15:12 |
skor |
second time this happened to me :slightly_smiling_face: |
# |
Aug 15th 2019, 15:12 |
skor |
just got there myself, thanks @steinkel :face_palm: |
# |
Aug 15th 2019, 15:11 |
steinkel |
@skor you have `$this->_associations->remove('X');` |
# |
Aug 15th 2019, 15:11 |
skor |
ok, i see that AssociationCollection has the remove, oops |
# |
Aug 15th 2019, 15:09 |
scuadra |
Hello. In Cake 3 is it wrong if I use patchEntity() 2 times before calling save() ? |
# |
Aug 15th 2019, 15:07 |
steinkel |
@neon1024 you don't need to put middlewares in routes if you don't want to, you can keep all in your Application but you'll need to add some logic to bypass the middleware based on routing params possibly, which is ugly |
# |
Aug 15th 2019, 15:07 |
skor |
issue is the default assoc is adding a condition on the join, and i dont need it |
# |
Aug 15th 2019, 15:06 |
skor |
i see there is a Table::addAssociations but no remove, so if i have a predefined assoc, i cant remove it at runtime? |
# |
Aug 15th 2019, 15:05 |
ricksaccous |
alright have a good break |
# |
Aug 15th 2019, 15:05 |
ricksaccous |
@neon1024 how is it a black box when it's open source? lolll |
# |
Aug 15th 2019, 15:05 |
neon1024 |
Rant over, gonna take a break. |
# |
Aug 15th 2019, 15:05 |
skor |
hello everyone! how can i remove an association in cake 3? cant find the method |
# |
Aug 15th 2019, 15:05 |
ricksaccous |
whatever framework/language you use is just a tool to solve a problem |
# |
Aug 15th 2019, 15:05 |
neon1024 |
They described Cake as a black box which you pulled a lever and something else happened somewhere else |
# |
Aug 15th 2019, 15:04 |
ricksaccous |
but it's annoying |
# |
Aug 15th 2019, 15:04 |
ricksaccous |
i don't understand all this holier than though stuff among programmers, well i suppose I do |
# |
Aug 15th 2019, 15:04 |
neon1024 |
Yep, by some eejit |
# |
Aug 15th 2019, 15:04 |
ricksaccous |
you were ridiculed at a conference for using cake? |
# |
Aug 15th 2019, 15:04 |
ricksaccous |
lol |
# |
Aug 15th 2019, 15:04 |
neon1024 |
It’s horrible and it’s choices like that which drive that opinion |
# |
Aug 15th 2019, 15:04 |
neon1024 |
If you’ve ever been personally ridiculed at a conference for using CakePHP you’ll know what I mean |
# |
Aug 15th 2019, 15:03 |
neon1024 |
Which I’d love to dispel, but I just can’t |
# |
Aug 15th 2019, 15:03 |
neon1024 |
Plus the whole magic thing is an age old critisim of Cake generally |
# |
Aug 15th 2019, 15:03 |
ricksaccous |
i'm just pulling your leg |
# |
Aug 15th 2019, 15:03 |
neon1024 |
Putting middleware in the routes when the other middleware is in Application.php is misleading |
# |
Aug 15th 2019, 15:03 |
neon1024 |
I want ease of installation with an api which is descriptive |
# |
Aug 15th 2019, 15:03 |
neon1024 |
I don’t want ease of use |
# |
Aug 15th 2019, 15:02 |
ricksaccous |
> wants ease of use >dislikes magic hmmmm |
# |
Aug 15th 2019, 15:02 |
neon1024 |
Would not _Token again |
# |
Aug 15th 2019, 15:02 |
neon1024 |
Needs work C- |
# |
Aug 15th 2019, 15:02 |
neon1024 |
If I can’t get it to work in a few hours, then, to me, it’s not worth using |
# |
Aug 15th 2019, 15:01 |
neon1024 |
It’s clearly not easy enough to use yet |
# |
Aug 15th 2019, 15:01 |
neon1024 |
I think I’m going to cut my losses and turn off the csrf |
# |
Aug 15th 2019, 14:59 |
ricksaccous |
oh supreme wizard guide cake to magical glory |
# |
Aug 15th 2019, 14:57 |
neon1024 |
We’re supposed to be getting rid of the magic |
# |
Aug 15th 2019, 14:57 |
neon1024 |
I do not like this. |
# |
Aug 15th 2019, 14:57 |
neon1024 |
There was me lookin the Application.php and the Princess was in the other castle :face_palm: |