# |
Jul 18th 2018, 02:58 |
o0h |
ex: ``` |
# |
Jul 18th 2018, 02:58 |
o0h |
@hippo Thanks! But, I want to add or-condition to “already build query” partially.. ;( (Not to build new query with.) |
# |
Jul 18th 2018, 02:50 |
hippo |
Anyone have any suggestions on working with JDBC database connections in PHP? |
# |
Jul 18th 2018, 02:49 |
hippo |
@o0h try `->where(['OR' => [['col' => 'a'], ['col' => 'b'], ['col' => 'c']]])` |
# |
Jul 18th 2018, 01:52 |
o0h |
I want to write query like `SELECT * FROM table WHERE A OR B OR C`. Creating custom find method, getting `$query->where(['OR' => [A, B])`, then I can attach or-condition it with orWhere(). Like `$query->orWhere(C)` But from 3.6, `$query->orWhere()` is deprecated. Is there better way to add or-condition to the query builder instance? |
# |
Jul 17th 2018, 22:57 |
rightscoreanalysis |
it's ok I found it |
# |
Jul 17th 2018, 22:53 |
rightscoreanalysis |
how so? |
# |
Jul 17th 2018, 22:52 |
saeideng |
yes |
# |
Jul 17th 2018, 22:47 |
rightscoreanalysis |
is it possible to send a param to cell function? |
# |
Jul 17th 2018, 22:37 |
saeideng |
good luck :+1: |
# |
Jul 17th 2018, 22:36 |
hippo |
Thanks, much appreciated! |
# |
Jul 17th 2018, 22:35 |
hippo |
Ahhhh |
# |
Jul 17th 2018, 22:35 |
saeideng |
https://github.com/cakephp/cakephp/pull/12076 |
# |
Jul 17th 2018, 22:35 |
saeideng |
yeah |
# |
Jul 17th 2018, 22:35 |
saeideng |
nice |
# |
Jul 17th 2018, 22:35 |
hippo |
I'd like to see |
# |
Jul 17th 2018, 22:35 |
hippo |
Do you know where it was fixed in the core |
# |
Jul 17th 2018, 22:34 |
hippo |
Yeah |
# |
Jul 17th 2018, 22:34 |
saeideng |
worked ? |
# |
Jul 17th 2018, 22:34 |
hippo |
That makes sense |
# |
Jul 17th 2018, 22:34 |
hippo |
Thank you! |
# |
Jul 17th 2018, 22:34 |
hippo |
Yay <3 |
# |
Jul 17th 2018, 22:33 |
saeideng |
and do test again |
# |
Jul 17th 2018, 22:33 |
saeideng |
`$_SERVER['PHP_SELF'] = '/';` |
# |
Jul 17th 2018, 22:33 |
saeideng |
and this line to it |
# |
Jul 17th 2018, 22:32 |
hippo |
Yup |
# |
Jul 17th 2018, 22:32 |
saeideng |
bootstrap for phpunit i mean |
# |
Jul 17th 2018, 22:32 |
hippo |
Yeah |
# |
Jul 17th 2018, 22:32 |
saeideng |
do you have `bootstrap.php ` in tests folder? |
# |
Jul 17th 2018, 22:31 |
saeideng |
but there is another way to fix it in cake 3.5 |
# |
Jul 17th 2018, 22:30 |
saeideng |
it solved in cake 3.6.3 |
# |
Jul 17th 2018, 22:30 |
saeideng |
wait |
# |
Jul 17th 2018, 22:29 |
saeideng |
I think it solved in cake core |
# |
Jul 17th 2018, 22:29 |
saeideng |
aha |
# |
Jul 17th 2018, 22:26 |
saeideng |
but I forgot now , what was :D |
# |
Jul 17th 2018, 22:25 |
saeideng |
I say this problem in one of plugins |
# |
Jul 17th 2018, 22:25 |
hippo |
Might be my shell |
# |
Jul 17th 2018, 22:25 |
saeideng |
no unrelated |
# |
Jul 17th 2018, 22:25 |
hippo |
Yeah not sure why it's doing that, `php7.1 vendor/bin/phpunit --filter test path/to/test.php` is how I'm running the tests. |
# |
Jul 17th 2018, 22:24 |
saeideng |
do you need help for this ? |
# |
Jul 17th 2018, 22:23 |
saeideng |
oh |