Log message #4159819

# At Username Text
# Jul 18th 2018, 06:07 saeideng it just do these not more
# Jul 18th 2018, 06:07 braeden Is the 'propertyName' option no longer used for hasOne associations?
# Jul 18th 2018, 06:07 hmic like i said, my approach is to setup a new 3.x app and move files one by one while checking what needs to be changed
# Jul 18th 2018, 06:07 slackebot actions. all Run all tasks except for skeleton. That task should only be run manually, and only for apps (not plugins).
# Jul 18th 2018, 06:07 slackebot changed during 2.x -> 3.0 fixtures Update fixtures to use new index/constraint features. This is necessary before running tests. tests Update test cases regarding fixtures. i18n Update translation functions regarding placeholders. skeleton Add basic skeleton files and folders from the "app" repository. prefixed_templates Move view templates for prefixed
# Jul 18th 2018, 06:07 slackebot App::uses() with use statements. rename_collections Rename HelperCollection, ComponentCollection, and TaskCollection. Will also rename component constructor arguments and _Collection properties on all objects. method_names Update many of the methods that were renamed during 2.x -> 3.0 method_signatures Update many of the method signatures that were
# Jul 18th 2018, 06:07 saeideng locations Move files/directories around. Run this *before* adding namespaces with the namespaces command. namespaces Add namespaces to files based on their file path. Only run this *after* you have moved files. app_uses Replace App::uses() with use statements rename_classes Rename classes that have been moved/renamed. Run after replacing
# Jul 18th 2018, 06:07 hmic to many and differing from what features you use to tell
# Jul 18th 2018, 06:06 naveen.bos which are the other things that we have to do manually after I run the tool
# Jul 18th 2018, 06:06 hmic i suggest you write a sample 3.x app first, go with the tutorial maybe. just to make yourself familiar with all the new things in 3.x and the things that have changed from 2.x
# Jul 18th 2018, 06:05 hmic it is a tool to help in the process and to lots of common things. your app will not run after using the upgrade shell without you changing lots of code still
# Jul 18th 2018, 06:04 hmic it is not a tool to automatically upgrade the app
# Jul 18th 2018, 06:04 naveen.bos but in this case there is an upgrade tool is available by the cake php team, will that wont work?
# Jul 18th 2018, 06:03 hmic i personally would not trz to upgrade anyways, but setup a new, empty 3.x app and move my source files one by one and upadate them in the process. you will anyways need to look at most of them
# Jul 18th 2018, 06:03 hmic in my oppinion you should write a 3.x app from scratch before converting any old codebase to get familiar with 3.x fist
# Jul 18th 2018, 06:02 hmic i dont know. but it will certainly not make your 2.x app run on 3.x automatically
# Jul 18th 2018, 06:01 naveen.bos will this command do all the stuffs?
# Jul 18th 2018, 06:01 naveen.bos I have done the upgrade all command
# Jul 18th 2018, 06:01 hmic if you are converting from 2.x, you need to add namespace definitions and use statements to all of your source files too - did you do that?
# Jul 18th 2018, 06:00 naveen.bos yes sure
# Jul 18th 2018, 06:00 hmic maybe just try calling "composer dumpautoload"
# Jul 18th 2018, 05:59 naveen.bos how can I check that
# Jul 18th 2018, 05:59 hmic make sure the autoloader works and composer did its job
# Jul 18th 2018, 05:58 hmic and theres zour problem right away. "Could not locate CakePHP core files."
# Jul 18th 2018, 05:58 naveen.bos these error message where showing, when i run the cake server in terminal
# Jul 18th 2018, 05:57 slackebot in /var/www/project_1/bin/cake.php on line 32
# Jul 18th 2018, 05:57 naveen.bos after upgrade I am receiving an error message PHP Warning: include(Cake/Console/ShellDispatcher.php): failed to open stream: No such file or directory in /var/www/project_1/bin/cake.php on line 31 PHP Warning: include(): Failed opening 'Cake/Console/ShellDispatcher.php' for inclusion (include_path='/var/www/lib:.:/usr/share/php') in /var/www/project_1/bin/cake.php on line 31 PHP Fatal error: Could not locate CakePHP core files.
# Jul 18th 2018, 05:57 naveen.bos https://book.cakephp.org/3.0/en/upgrade-tool.html#
# Jul 18th 2018, 05:57 naveen.bos I have used this tutorial for upgrade
# Jul 18th 2018, 05:56 naveen.bos I have an issue with cake php upgrade from 2.7.5 to latest version
# Jul 18th 2018, 05:56 naveen.bos Hi All
# Jul 18th 2018, 03:55 o0h mm,, Thanks! I try to refactor using `orWhere()` :muscle:
# Jul 18th 2018, 03:00 graziel all `where` conditions use `AND` as conjuncion and i dont see any way to direcly affect it
# Jul 18th 2018, 02:59 graziel i think its impossible now that `orWhere` is deprecated, you could just create separate finder for this case
# 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?