# |
Oct 5th 2016, 09:42 |
dariolap |
Then, i can't ignore it when i save entity? |
# |
Oct 5th 2016, 09:42 |
flangofas |
@ndm thanks :slightly_smiling_face: |
# |
Oct 5th 2016, 09:41 |
flangofas |
@dariolap Sry, I thought you meant accessible fields :slightly_smiling_face: |
# |
Oct 5th 2016, 09:39 |
ndm |
@dariolap @flangofas accessors and accessibility are two different things... you can't disable accessors, if your entity has them defined, then they are being used. |
# |
Oct 5th 2016, 09:38 |
Speud |
why when we try to save (edit) associative model, the validator rule is running, it should not ? |
# |
Oct 5th 2016, 09:37 |
flangofas |
after patchEntity if you set the field to be not accessible, then you shouldn't see it in the dirty fields. |
# |
Oct 5th 2016, 09:26 |
dariolap |
flangofas, I do it. But after patchEntity I have same result: accessor is called |
# |
Oct 5th 2016, 09:21 |
jay |
Tyvm :slightly_smiling_face: |
# |
Oct 5th 2016, 09:20 |
jay |
haha i'm so confused |
# |
Oct 5th 2016, 09:19 |
wyrihaximus |
Yeah I do :P |
# |
Oct 5th 2016, 09:19 |
jay |
Anyone here used this with cake x.3 https://github.com/WyriHaximus/Ratchet ? |
# |
Oct 5th 2016, 09:17 |
flangofas |
sry first the * then the field :slightly_smiling_face:, see example here: https://github.com/CakeDC/users/blob/master/src/Model/Entity/User.php#L31 |
# |
Oct 5th 2016, 09:15 |
flangofas |
if you say 'myField' => false and then * => true then all the fields are accessible apart from myField |
# |
Oct 5th 2016, 09:15 |
flangofas |
if you have *, the all the fields are accessible |
# |
Oct 5th 2016, 09:14 |
dariolap |
and after patchEntity, my field is changed |
# |
Oct 5th 2016, 09:13 |
dariolap |
flangofas, I have '*' => true |
# |
Oct 5th 2016, 09:11 |
flangofas |
@dariolap $entity->accessible('fieldname', true); |
# |
Oct 5th 2016, 09:07 |
wrksx |
What technique are you guys using to deploy efficiently? |
# |
Oct 5th 2016, 09:05 |
Neon1024 |
Hah, typo, missed the t |
# |
Oct 5th 2016, 08:57 |
Neon1024 |
O_o |
# |
Oct 5th 2016, 08:57 |
Neon1024 |
Error: Call to undefined method TableShellHelper::ouput() |
# |
Oct 5th 2016, 08:57 |
Neon1024 |
http://book.cakephp.org/2.0/en/console-and-shells/helpers.html#built-in-helpers |
# |
Oct 5th 2016, 08:56 |
wrksx |
hey guys |
# |
Oct 5th 2016, 08:55 |
Speud |
hello ;) |
# |
Oct 5th 2016, 08:51 |
dariolap |
How i can to ignore accessor in patchEntity? |
# |
Oct 5th 2016, 08:44 |
jay |
What about Helpers? Is it possible to load helpers from vendor from controller? |
# |
Oct 5th 2016, 08:32 |
dariolap |
Hi all. I use cakephp 3.2. How i can to avoid to call accessor method when i save entity? I have _getCompany in entity model, but when i save I don't want to modify this field. |
# |
Oct 5th 2016, 08:27 |
jay |
Ah it's the helper that's failing, not the plugin \o/ |
# |
Oct 5th 2016, 08:23 |
bernat1 |
) |
# |
Oct 5th 2016, 08:16 |
jay |
my bad. slow morning. |
# |
Oct 5th 2016, 08:16 |
jay |
oh shit, yeah they are |
# |
Oct 5th 2016, 08:16 |
jay |
they're not loaded through plugins? |
# |
Oct 5th 2016, 08:16 |
bernat1 |
jay, it must be possible, see bake or debugkit |
# |
Oct 5th 2016, 08:15 |
bernat1 |
I think there was a Connection::reconnect() method for when the database connection hasn't been used for a while. Is there something similar in cake3 or should I call disconnect and connect? |
# |
Oct 5th 2016, 08:15 |
jay |
Is it possible to load plugins from vendor instead of plugins dir? |
# |
Oct 5th 2016, 08:12 |
lsfc1914 |
Hello. In Cake 2 how can I save data in Component? |
# |
Oct 5th 2016, 07:35 |
birdy247 |
Morning all |
# |
Oct 5th 2016, 07:18 |
NeoThermic|Work |
Great... there's no way to call File::open() and have it return false if the file doesn't exist; it always creates the file ¬_¬ |
# |
Oct 5th 2016, 07:15 |
cosmin_cimpoi |
? |
# |
Oct 5th 2016, 07:15 |
cosmin_cimpoi |
but I have a really simple api. Anything in particular you re looking for |
# |
Oct 5th 2016, 07:14 |
cosmin_cimpoi |
acosonic: the cake book has some good outlines. I just went w/ basic auth and .json extension |