# |
Jun 28th 2017, 13:35 |
saeideng |
i want `or(a and b) or (c and d) or (e and f)` query by this `orWhere()` |
# |
Jun 28th 2017, 13:34 |
chris-andre |
@neon1024 https://book.cakephp.org/3.0/en/orm/validation.html#using-a-different-validation-set |
# |
Jun 28th 2017, 13:33 |
gutts |
what would be the diff between mapReduce and a virtual field? technically what's the diff? |
# |
Jun 28th 2017, 13:33 |
gutts |
ah |
# |
Jun 28th 2017, 13:33 |
neon1024 |
Yes, the map reduce stuff is iterators |
# |
Jun 28th 2017, 13:33 |
saeideng |
but result is incorrect |
# |
Jun 28th 2017, 13:33 |
gutts |
because at that point, it's a ReplaceIterator, right neon2014? |
# |
Jun 28th 2017, 13:32 |
neon1024 |
Yes, you can |
# |
Jun 28th 2017, 13:32 |
saeideng |
can we use `orWhere()->orWhere->orWhere()` ? |
# |
Jun 28th 2017, 13:32 |
neon1024 |
Sounds to me like either a virtual field, or a mapReduce |
# |
Jun 28th 2017, 13:32 |
gutts |
i want to map and specify a description and override it with a child that's contained if it's there, basically.. but i want to specify it in my custom finder |
# |
Jun 28th 2017, 13:31 |
saeideng |
hi |
# |
Jun 28th 2017, 13:31 |
gutts |
kind of a stupid question, but can I specify a callback for a Cake\ORM\Query that happens when it executes and not at declaration? |
# |
Jun 28th 2017, 13:27 |
neon1024 |
Always keep learning! |
# |
Jun 28th 2017, 13:27 |
adriencs |
@neon1024 noob. :doge: |
# |
Jun 28th 2017, 13:20 |
chris-andre |
just a momemnt |
# |
Jun 28th 2017, 13:20 |
chris-andre |
Sure. |
# |
Jun 28th 2017, 13:19 |
neon1024 |
Ooh, can you link me to the book for that so I can learn :slightly_smiling_face: |
# |
Jun 28th 2017, 13:19 |
chris-andre |
No. I have created a validation for new records. |
# |
Jun 28th 2017, 13:18 |
neon1024 |
Not seen that before either :P |
# |
Jun 28th 2017, 13:18 |
neon1024 |
Rather than validationDefault? |
# |
Jun 28th 2017, 13:18 |
chris-andre |
Probably not, but didn't work anyway. |
# |
Jun 28th 2017, 13:18 |
neon1024 |
Could be perhaps because your validation method is called ValidationNew? |
# |
Jun 28th 2017, 13:17 |
neon1024 |
I’ve not seen that before :slightly_smiling_face: |
# |
Jun 28th 2017, 13:17 |
neon1024 |
Do you need `'provider' => 'table',` ? |
# |
Jun 28th 2017, 13:16 |
chris-andre |
Does anyone have an idea why? `'validate' => 'new'` is set in patchEntity(). |
# |
Jun 28th 2017, 13:15 |
chris-andre |
Hi. I can't get my custom validation to work. Just to test it, I return false, but it doesn't give me any errors. Gist: https://gist.github.com/chris-andre/4e6d9bda6d671feb3a529654b931fe05#file-customerstable-php-L22 |
# |
Jun 28th 2017, 13:04 |
misfotto |
help pls :P |
# |
Jun 28th 2017, 13:04 |
misfotto |
canno find anything on stackoverflow nor cakephp docs |
# |
Jun 28th 2017, 13:04 |
misfotto |
i wanna specify ZEROFILL after the UNSIGNED for an integer value but schema seems ignoring the directive |
# |
Jun 28th 2017, 13:03 |
misfotto |
anyone here can help me with a schema relate problem |
# |
Jun 28th 2017, 13:03 |
misfotto |
hi all |
# |
Jun 28th 2017, 12:57 |
dereuromark |
maybe you still have it in code there as ->allow() |
# |
Jun 28th 2017, 12:52 |
jarard |
allow pages/display seems to work but oddly I don't see this rule in other project |
# |
Jun 28th 2017, 12:45 |
jarard |
how do I ensure that my home index page isn't locked out. I am looking at previous prjects that use TinyAuth and I can't see that Pages/view is in the allowed list |
# |
Jun 28th 2017, 12:32 |
jarard |
dereuromark - I can' tever imagine not using it now |
# |
Jun 28th 2017, 12:21 |
cleptric |
:slightly_smiling_face: |
# |
Jun 28th 2017, 12:20 |
dereuromark |
@cleptric Much appreciated |
# |
Jun 28th 2017, 12:18 |
cleptric |
Ok, nvm then ^^ |
# |
Jun 28th 2017, 12:18 |
jotpe |
it's cake 2.x |
# |
Jun 28th 2017, 12:18 |
cleptric |
Cake 3 don’t has a `getDataSource` function |