# |
Jan 4th 2019, 19:12 |
jeremyharris |
I use a custom EncryptedStringType that does it all at the db type level, which creates an object that has a ->decrypt() method on it |
# |
Jan 4th 2019, 19:11 |
jeremyharris |
probably an accessor |
# |
Jan 4th 2019, 19:11 |
jhall |
I tried afterFind but it does not appear to being called |
# |
Jan 4th 2019, 19:11 |
jhall |
What is the best model callback to use to decrypt some data before I display it in the template? |
# |
Jan 4th 2019, 19:10 |
Bambino |
Thank you! I will start doing this. |
# |
Jan 4th 2019, 19:09 |
dereuromark |
for bake not even that is needed |
# |
Jan 4th 2019, 19:09 |
dereuromark |
first rule of cli: -h (--help) on a command |
# |
Jan 4th 2019, 19:09 |
dereuromark |
bake model? |
# |
Jan 4th 2019, 19:06 |
Bambino |
How can I bake a model? |
# |
Jan 4th 2019, 15:57 |
challgren |
@hippo probably best just to delete the directory and have composer reinstall it. Sounds like your package was modified |
# |
Jan 4th 2019, 13:28 |
hippo |
@challgren it's really strange.. On line 308 in my source it has `if (is_string($event))` .. Doesn't make any sense.. |
# |
Jan 4th 2019, 10:23 |
asdfgh |
yes hippo i am trying thanks |
# |
Jan 4th 2019, 10:22 |
challgren |
https://github.com/cakephp/cakephp/blob/3.7.2/src/Event/EventManager.php#L312 |
# |
Jan 4th 2019, 10:22 |
challgren |
infact that call should be on Line 312 if you are running 3.7.1 |
# |
Jan 4th 2019, 10:21 |
challgren |
It sounds like you have a modified source file because line 308 has not been modified in over 4 years. https://github.com/cakephp/cakephp/blame/eae26792654fece99bb121420e179f0a0efcb2ae/src/Event/EventManager.php#L308 |
# |
Jan 4th 2019, 10:19 |
challgren |
Update to cake 3.7.2 |
# |
Jan 4th 2019, 10:18 |
challgren |
@hippo what version of cake are you running? |
# |
Jan 4th 2019, 10:18 |
hippo |
no worries.. should give you an idea on how to structure the form. If you setup your relationships correctly and the form then it should work correctly :slightly_smiling_face: |
# |
Jan 4th 2019, 10:12 |
asdfgh |
hippo thanks! i am reading |
# |
Jan 4th 2019, 10:11 |
hippo |
Has anyone seen this deprecation warning? ``` NOTICE Deprecated (16384): Event::name() is deprecated. Use Event::getName() instead. - /vendor/cakephp/cakephp/src/Event/EventManager.php, line: 308 ``` Running Cake 3.7.1 and PHP 7.1. |
# |
Jan 4th 2019, 10:08 |
hippo |
asdfgh have a look at this: https://gist.github.com/LoveMHz/c0f6694b3e0da1987eed |
# |
Jan 4th 2019, 09:51 |
challgren |
@nickbuseymake sure you name does not include an underscore I updated the docs to let you know about this in case you experince it |
# |
Jan 4th 2019, 09:49 |
asdfgh |
i need to add requirements and a score for each |
# |
Jan 4th 2019, 09:48 |
asdfgh |
the table is: id, company_id, requirement_id, score... how can i handle it in forms? |
# |
Jan 4th 2019, 09:48 |
asdfgh |
i have two tables companies and requirements then i need to create companies_requirements that link both tables. No problem about that but ... in companies_requirements i should add a "score" too |
# |
Jan 4th 2019, 09:48 |
asdfgh |
hello |
# |
Jan 4th 2019, 09:29 |
dereuromark |
hmic: havent seen you for a while :slightly_smiling_face: |
# |
Jan 4th 2019, 09:29 |
mocelle |
Thanks @hmic. Its done |
# |
Jan 4th 2019, 08:19 |
hmic |
the mentioned github.com/usemuffin/footprint is a useful implementation of the pattern |
# |
Jan 4th 2019, 08:18 |
hmic |
github.com/ceeram/blame is a sample implementation that shows the steps |
# |
Jan 4th 2019, 08:17 |
hmic |
mocelle, sure there is: you pass the apropriate information down to the model layer |
# |
Jan 4th 2019, 08:16 |
mocelle |
Is there way to take Auth User properties into custom Behavior? Need It for update table with user if record changed |
# |
Jan 4th 2019, 05:20 |
NickBusey |
nevermind `$this->Auth->user()` works as expected |
# |
Jan 4th 2019, 05:08 |
NickBusey |
Hmm, ok this is strange. I am using the api key auth, and it's working. (If I include a valid api_token, I get results back, if I don't, I don't.) However, I can't seem to access the logged in user via normal methods in a controller. `debug($this->request->getSession()->read('Auth'));` returns null |
# |
Jan 4th 2019, 05:07 |
NickBusey |
Ah got that fixed, was the header not making it through correctly |
# |
Jan 4th 2019, 04:35 |
NickBusey |
it's broken again, gah |
# |
Jan 4th 2019, 04:35 |
NickBusey |
If I use the 4 lines at the bottom of https://github.com/CakeDC/auth/blob/master/Docs/Documentation/ApiKeyAuthenticate.md in my AppController, requests time out. If I comment out the bottom line, there's a bunch of 'You are not authorized to access this location' messages displayed on the login page rendered. I swear I had api key auth working, now |
# |
Jan 4th 2019, 00:43 |
asdfgh |
i need to add requirements and a score for each |
# |
Jan 4th 2019, 00:42 |
asdfgh |
i have two tables companies and requirements then i need to create companies_requirements that link both tables. No problem about that but ... in companies_requirements i should add a "score" too the table is: id, company_id, requirement_id, score... how can i handle it in forms? |
# |
Jan 4th 2019, 00:40 |
asdfgh |
hello |
# |
Jan 3rd 2019, 23:58 |
dereuromark |
not sure in what context you are using it, you are missing the whole data around it for being able to give a more concrete answer |