Log message #4113356

# At Username Text
# Feb 1st 2018, 02:43 gsitex Hey people!
# Feb 1st 2018, 01:17 dereuromark @ank068 check your app.php config and if all session configs are there, sounds like there might be sth missing
# Jan 31st 2018, 23:43 meder oh god, n/m
# Jan 31st 2018, 23:35 meder i'm calling $this->paginate with a controller and that's when it gets thrown
# Jan 31st 2018, 23:34 meder how can I easily catch/test for "Impossible to generate condition with empty list of values for field " before the exception gets thrown?
# Jan 31st 2018, 22:07 cnizzardini but i am interested in what others might say, have you tried googling for this?
# Jan 31st 2018, 22:07 cnizzardini In my projects I just run stuff out of webroot
# Jan 31st 2018, 22:04 alaovich Hi! I would like use webpack on my cakephp 3 project but i don't know what is a best method
# Jan 31st 2018, 22:01 popperz0r not the url `/users/users/social-email` gives me a 404 :)
# Jan 31st 2018, 22:01 popperz0r Having real troubles with this one
# Jan 31st 2018, 22:01 popperz0r Hi, anyone uses cakedc plugin and has worked with socialEmail validation?
# Jan 31st 2018, 21:43 ank068 Any help or suggestion will help
# Jan 31st 2018, 21:43 ank068 File uploaded https://cakesf.slack.com/files/U91GR08DV/F920ZG5NZ/screen.png / https://slack-files.com/T053DPNCM-F920ZG5NZ-254ec18d71 - This is the error
# Jan 31st 2018, 21:43 ank068 File uploaded https://cakesf.slack.com/files/U91GR08DV/F920ZB84D/-.txt / https://slack-files.com/T053DPNCM-F920ZB84D-b018e01e92 - I am currently migrating my project from cake 1.3 to cake 3.5.10 and I getting an error for the sessions.
# Jan 31st 2018, 21:13 zmurphy Can different authenticate methods be assigned different session keys?
# Jan 31st 2018, 21:04 bato hi, is there a way to do `SELECT ROUND( SUM( field ) / 8, 1 ) as alias` using the ORM? I don't understand how to divide by 8
# Jan 31st 2018, 20:41 zmurphy So I'm adding a new rule class to ensure an administrator doesn't exist as a user and a user doesn't exist as an administrator, and somehow it's breaking all my tests by somehow causing user entities to become administrator entities and vice versa and I have no idea how. I don't modify the entityinterface passed to the rule in any way so I've no clue how that happens
# Jan 31st 2018, 20:08 meder thank you
# Jan 31st 2018, 20:07 meder perfect
# Jan 31st 2018, 20:07 meder oh
# Jan 31st 2018, 20:07 edgaras.janusauskas public $components = ['My' => ['className' => MyComponent::class]]
# Jan 31st 2018, 20:06 meder yes
# Jan 31st 2018, 20:06 edgaras.janusauskas when you moved file, did you changes namespace?
# Jan 31st 2018, 20:05 meder problem is specifying it right in the $components property
# Jan 31st 2018, 20:05 meder i have the 'use'
# Jan 31st 2018, 20:04 edgaras.janusauskas also add `use App\Controller\Component\V1\MyComponent`, so `MyComponent::class` would translate to `\App\Controller\Component\V1\MyComponent::class`
# Jan 31st 2018, 20:03 meder public $components = ['My' => MyComponent::class] says MyComponent could not be found, but i can dd(MyComponent::class) in initialize
# Jan 31st 2018, 20:02 edgaras.janusauskas it should work both ways
# Jan 31st 2018, 20:01 meder or do i have to use loadComponent
# Jan 31st 2018, 20:01 meder can I still do that with $components ?
# Jan 31st 2018, 20:00 edgaras.janusauskas use 'className' => MyComponent::class
# Jan 31st 2018, 19:58 meder is there something i'm missing / is there an extra step if you namespace them?
# Jan 31st 2018, 19:58 meder I moved my component from src/Controller/Component/MyComponent.php to src/Controller/Component/V1/MyComponent.php and did "use App\Controller\Component\V1\MyComponent" and public $components = ['My'] but it can't find it?
# Jan 31st 2018, 19:39 zmurphy Ah I see. Thanks, didn't know that it took a className field
# Jan 31st 2018, 19:36 hmic only thing you need to add is the className to tell cake which one to use, because the key in the array is not telling anymore
# Jan 31st 2018, 19:35 hmic insode the form1 and form2 keys you put the respective config, like you did in the 'Form' key before. thats it
# Jan 31st 2018, 19:35 hmic your auth config should look like that: 'Auth' => [ 'Form1' => ['className' => 'Form', ...], ['Form2' => ['className' => 'Form', ...]];
# Jan 31st 2018, 19:33 zmurphy I may be able to do it by swapping out the config based on the controller now that I think of it
# Jan 31st 2018, 19:32 zmurphy I'm not sure I follow. In this case I need two Form authenticates, but obviously that would have duplicate keys in the authenticate array so I'm not sure how to configure that
# Jan 31st 2018, 19:27 hmic probably an example in the book
# Jan 31st 2018, 19:27 edgaras.janusauskas ``` public $components = array( 'Auth' => array( 'className' => 'MyAuth' ) ); ```