Log message #4017135

# At Username Text
# Apr 18th 2017, 12:10 dakota mampel, I use homebrew for my mac php needs
# Apr 18th 2017, 11:46 aiena not sure
# Apr 18th 2017, 11:46 aiena since that is the only primary key maybe it still works
# Apr 18th 2017, 11:45 aiena bernat, yeah but it works. cake has some fall backs. I never created this project. I cant do much about conventions at this point
# Apr 18th 2017, 11:44 bernat aiena: that's surprising because your primary key doesn't follow cake conventions.
# Apr 18th 2017, 11:44 aiena that code was working
# Apr 18th 2017, 11:44 aiena sorry solved. It was a problem with the form
# Apr 18th 2017, 11:43 joris_ i keep getting `PHP Fatal error: Class 'PHPUnit\Framework\TestCase' not found in /var/www/html/cakephp-upload/vendor/cakephp/cakephp/src/TestSuite/TestCase.php on line 32` which means phpunit isn't autoloading but it got installed automatically through composer
# Apr 18th 2017, 11:42 joris_ Anyone else having trouble testing a cake 3 app through phpunit in ubuntu 16.04 ?
# Apr 18th 2017, 11:40 aiena what is wrong ?
# Apr 18th 2017, 11:40 aiena In a cake2 project I am maintaining I want to update a record. I read that if the primary key is provided it will update that record. But it is creating a new record instead. see http://paste.opensuse.org/47910010
# Apr 18th 2017, 11:29 justcharlz //get winnerslist $winners = $this->Virtualwarehouse->find('all', array('conditions'=>array('Virtualwarehouse.winner !=' => 'null'))); $winneroptions = array('conditions'=>array('User.id'=>$winners['Virtualwarehouse']['winner']), array('User.email','User.fname', 'User.path', 'User.pix')); $winnersrecord = $this->Virtualwarehouse->User->find('all',$winneroptions); $this->set('winnerslist',$winners); print_r($winners);
# Apr 18th 2017, 11:29 slackebot5 to display all. This is what I have done but not working. Any help here?
# Apr 18th 2017, 11:29 justcharlz need little help here. I created this two tables(Virtualwarehouse and users) and did the association linking using belongsTo (virtualwarehouse => users). On the virtualwarehouse table, there is a column(called winners) on each row that stores an id of a single user which is randomly selected and included from another table. I am trying to get all the ids in the winners column and query the Users table for the details of the user with the
# Apr 18th 2017, 11:29 inoas return missing
# Apr 18th 2017, 11:29 inoas ah so stupid
# Apr 18th 2017, 11:28 inoas https://gist.github.com/inoas/f93449568217a024f85ce20ef4b7fc9f
# Apr 18th 2017, 11:27 inoas when using formatResults I get: Only an array or \Traversable is allowed for Collection
# Apr 18th 2017, 11:24 hmic while /articles/view/1/2 would pass 2 as the second argument to the action...
# Apr 18th 2017, 11:23 hmic you could have /articles/view/1 where i is the id passed to the action, /articles/view/1/ does the same thing
# Apr 18th 2017, 11:23 hmic aiena: it does not matter really
# Apr 18th 2017, 11:22 aiena in cake a url should not have a trailing slash if there is nothing after it. E.g. a route should be defined as "/pages/12" for example (assuming 2 is hardcoded otherwise /pages/*) instead of "/pages/12/"
# Apr 18th 2017, 11:17 mampel @dakota I installed xampp in mac and then must install php-intl in terminal but return some error, do you install cake php in mac?
# Apr 18th 2017, 10:42 hmic you should wait for others to answer too i think ;-)
# Apr 18th 2017, 10:42 hmic just my humble opinion :/
# Apr 18th 2017, 10:41 keremcankaya Thanks a lot!
# Apr 18th 2017, 10:33 hmic maybe you can update the plugin you are talking of to utilize the new driver too :D
# Apr 18th 2017, 10:33 hmic with 3.x there is the webservice plugin that provides kind of infrastructure to do an integration, on 2.x i don't know, and i would not care really...
# Apr 18th 2017, 10:33 hmic keremcankaya: as there is no real support for mongo on cake, i'd use it like any external library and use the new driver of course!
# Apr 18th 2017, 10:31 keremcankaya Hey there quick question can i use mongodb with cakephp2.9? I’ve installed ichikaways depreciated plugin however it’s using mongo driver(old one) instead of mongodb(new php driver). Is it okey to install the old driver and use ichikaways plugin or is there any other better way to go?
# Apr 18th 2017, 10:29 hmic if you have worked with cake before, you will not run into any problems you can't solve. if you have not worked with cake before, i would advise to find someone who does and handle the task over
# Apr 18th 2017, 10:28 hmic but it is very doable and you can get help over here
# Apr 18th 2017, 10:28 hmic the upgrade will not be fully automatic and be done in a day, if you have good tests, thats a big plus!
# Apr 18th 2017, 10:27 hmic cake 1.3 is EOL and EOS for quite some time now
# Apr 18th 2017, 10:26 hmic sim: you shdould do the 2.x upgrade by all means!
# Apr 18th 2017, 10:23 sim Thanks, I will not upgrade it now, :,'(
# Apr 18th 2017, 10:22 dereuromark hmic: I didnt see the pastebin, well thats a bummer then
# Apr 18th 2017, 10:21 hmic it will not gain you much though, as the upgrade to 3.x is still almost the same effort
# Apr 18th 2017, 10:20 hmic you will have to tweak the one or the other thing, but this is a task that can be done rather easily and quickly
# Apr 18th 2017, 10:20 hmic there are upgrade tools in existance that can help you with upgrading 1.3 to 2.x
# Apr 18th 2017, 10:19 hmic cache is about the same, as it only depends on the cache engine, utilization of cache might be different