Log message #4017157

# At Username Text
# Apr 18th 2017, 14:05 Junior yep
# Apr 18th 2017, 14:02 nemmons did you follow all the instructions here https://github.com/UseMuffin/Footprint including adding the FootprintAwareTrait to your AppController?
# Apr 18th 2017, 13:58 Junior i have modified, my columns are updated with empty strings
# Apr 18th 2017, 13:38 Junior i see, will try now, thanks!
# Apr 18th 2017, 13:36 nemmons It works great for me. The default config settings specify the columns as 'created_by' and 'modified_by' so you might have to tweak the config for your column names
# Apr 18th 2017, 13:36 Junior will give it another go then
# Apr 18th 2017, 13:36 Junior nemmons, i thik that i have tried that in the past but failed
# Apr 18th 2017, 13:34 nemmons Junior, you want https://github.com/UseMuffin/Footprint
# Apr 18th 2017, 13:28 Junior I have an app written in cakePHP 3.x . In all my tables besides created and modified i have added "createdby" and "modifiedby" (int 10) . I would like to populate somehow this columns with the logged in user (using authacl). I know that there was a plugin or maybe something simple as i don't want to change all models. Thanks!
# Apr 18th 2017, 13:27 Junior yello! :)
# Apr 18th 2017, 13:08 lukesoft thanks dakota….forgot to specify vendor
# Apr 18th 2017, 13:08 lukesoft not ‘plugin’ => ‘Users’
# Apr 18th 2017, 13:08 dakota lukesoft What’s your error logs saya Ah ok :slightly_smiling_face:
# Apr 18th 2017, 13:08 lukesoft ‘plugin’ => ‘CakeDC/Users’
# Apr 18th 2017, 13:08 lukesoft never mind……got it
# Apr 18th 2017, 13:04 lukesoft i know this is suppose to be super straightfoward
# Apr 18th 2017, 13:04 lukesoft Hi Everyone…how do i override /users/users/register route (from CakeDC Users plugin) to just /register…i tried this http://paste.opensuse.org/73876854 but getting ‘An Internal Server Error Occurred’
# Apr 18th 2017, 12:12 dakota In my experience :slightly_smiling_face:
# Apr 18th 2017, 12:11 dakota Weirdly, mamp on windows works really well, but on mac it’s full of issues
# Apr 18th 2017, 12:11 dakota I’ve only ever heard of problems with mamp
# Apr 18th 2017, 12:11 dakota That way I know that my dev env. is nearly identical to my production env.
# Apr 18th 2017, 12:10 dakota But, for actual application development, I use vagrant
# 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...