# |
Apr 10th 2019, 14:44 |
ricksaccous |
i see |
# |
Apr 10th 2019, 14:43 |
jeremyharris |
you can use mutators for those particular fields, e.g. _setOtherAddress, that applied your map fields. then if you set it via ->other_address it would set the normalized fields automatically |
# |
Apr 10th 2019, 14:40 |
ricksaccous |
which isn't the worst thing, but could be nice if the function was called on construct or something |
# |
Apr 10th 2019, 14:40 |
ricksaccous |
right now i have to do entity->setNormalizedFields() to get it to work, hehe |
# |
Apr 10th 2019, 14:38 |
ricksaccous |
this is what i'm dealing with https://gist.github.com/Modicrumb/0c7820e297dcc89ca2307db1bfceb3ba |
# |
Apr 10th 2019, 14:37 |
jeremyharris |
if you are wanting them to call _setMyProperty methods, however, set() with an array will call those setters |
# |
Apr 10th 2019, 14:37 |
tom082 |
Hello, I am having some weird issues with sending out HTML emails with Elements. sending 2 emails one right after the other and the 2nd emails has the 1st emails copy that is generated in an Element within the template. Outside the Element it is correct. I have tried putting ['cache' => false] but to no avail. Any suggestions on where to look would be greatly appreciated. |
# |
Apr 10th 2019, 14:35 |
dereuromark |
you are thinking from the wrong side. those are lazy read-generated, not lazy populated |
# |
Apr 10th 2019, 14:35 |
ricksaccous |
that's the magic i want |
# |
Apr 10th 2019, 14:35 |
ricksaccous |
when you create a _getFullTitle method or something |
# |
Apr 10th 2019, 14:35 |
ricksaccous |
the virtual fields |
# |
Apr 10th 2019, 14:35 |
ricksaccous |
or like |
# |
Apr 10th 2019, 14:35 |
jeremyharris |
not sure what “magic” you are wanting? |
# |
Apr 10th 2019, 14:34 |
jeremyharris |
entitytrait::set() accepts an array |
# |
Apr 10th 2019, 14:34 |
ricksaccous |
what is the thing to do here |
# |
Apr 10th 2019, 14:34 |
ricksaccous |
but i still want the magic of it being called automagically |
# |
Apr 10th 2019, 14:33 |
ricksaccous |
at a time |
# |
Apr 10th 2019, 14:33 |
ricksaccous |
suppose i want a method in an entity to set a bunch of fields rather than set one field at a atime |
# |
Apr 10th 2019, 14:20 |
neon1024 |
I’d use a single plugin personally, developing and maintaining the same code in two places is a pain in the ass |
# |
Apr 10th 2019, 14:01 |
ondrej.nedvidek |
I know I could use any of those and realize what I need. But thinking what makes more sense to use 1) Advantages - logic is clearly divided - conventions are more clearly applied (eg namespaces and folder structure) 2) Advantages - only one plugin => one composer record - code is in one place - one namespace for Admin/App logic (not sure if advantage or not though) |
# |
Apr 10th 2019, 13:57 |
ondrej.nedvidek |
Hi there ;) We have Admin part divided from App (Frontend) part. It makes sense for us, but thinking about realization of plugins for such a logic of system. Our Admin controllers extends AdminController and App controllers extends AppController. For logic, lets say Shop which needs to deal with App and also with Admin part. Would you rather create 1) 2 plugins = eg Shop and ShopAdmin 2) 1 plugin = eg Shop only and have |
# |
Apr 10th 2019, 13:51 |
david |
I think that office365 overwrites that param |
# |
Apr 10th 2019, 13:46 |
david |
any idea on this? |
# |
Apr 10th 2019, 13:46 |
david |
Have you tried to send a cakephp email via smtp with office365? I am sending emails in that way, and I have a problem: when I receipt the email the sender name doesn't match with the one I configured. My transport "from" is array('info@domain.com' => 'ABCDE') The sender name is "info" instead of "ABCDE" as expected |
# |
Apr 10th 2019, 13:41 |
dereuromark |
The trick until then is to use unique enough names :slightly_smiling_face: My conention is PluginorappnameTableUniqueSuffix |
# |
Apr 10th 2019, 13:41 |
dereuromark |
legacy |
# |
Apr 10th 2019, 13:39 |
josbeir |
:shrug: |
# |
Apr 10th 2019, 13:38 |
neon1024 |
Why don’t migrations have a namespace |
# |
Apr 10th 2019, 13:08 |
joopm |
@neon1024 |
# |
Apr 10th 2019, 12:59 |
joopm |
<neon1024> |
# |
Apr 10th 2019, 11:59 |
joopm |
i dont know exactly where to place the new keyword as you wrote |
# |
Apr 10th 2019, 11:52 |
joopm |
user(s) is saved |
# |
Apr 10th 2019, 11:52 |
joopm |
my request look like this |
# |
Apr 10th 2019, 11:50 |
joopm |
can i delete this upload file? |
# |
Apr 10th 2019, 11:49 |
joopm |
Uploaded file: https://uploads.kiwiirc.com/files/b757352f907ad5f778622a95e347993d/pasted.txt |
# |
Apr 10th 2019, 11:43 |
neon1024 |
Well, do check your request data is formatted correctly, according to the book |
# |
Apr 10th 2019, 11:41 |
joopm |
no luck |
# |
Apr 10th 2019, 11:37 |
joopm |
$person = $this->People->patchEntity($person, $this->request->getData(),['associated'=>['Users'=>['validate'=>true,'associated'=>'Roles']]]); |
# |
Apr 10th 2019, 11:36 |
joopm |
do you think that this must works: |
# |
Apr 10th 2019, 11:36 |
joopm |
thank you neon1024 |
# |
Apr 10th 2019, 11:35 |
neon1024 |
You need to add a new key on each level |