Log message #4208973

# At Username Text
# Oct 15th 2019, 12:36 scuadra I think I should set them manually in the component
# Oct 15th 2019, 12:36 scuadra @conehead @javier.villanueva well the problem is that in the view I get "Undefined index: pageCount" and other similar notices (page, start, end)
# Oct 15th 2019, 12:32 dakota :+1: Thanks
# Oct 15th 2019, 12:31 dereuromark @dakota I released your fix @ https://github.com/dereuromark/cakephp-ide-helper/releases
# Oct 15th 2019, 12:31 dereuromark also there, best to always add the same constraints, this way you find those issues even if accidentally the validation didnt kick in.
# Oct 15th 2019, 12:31 dereuromark It should though, sure your fixture has the proper fields and stuff?
# Oct 15th 2019, 12:31 javier.villanueva Yes, if you load paginator component in your component
# Oct 15th 2019, 12:19 conehead I don't see why this should not work
# Oct 15th 2019, 12:10 scuadra Hello. I am using CakePHP 3.7. Is it possible to paginate model in a Component and then return the results to a controller action? :face_with_rolling_eyes:
# Oct 15th 2019, 11:53 jotpe ;)
# Oct 15th 2019, 11:53 ndm I know I say this everytime when this problem comes up, but I never liked the magic model classes :upside_down_face:
# Oct 15th 2019, 11:49 jotpe Thanks @ndm; It was a association with a wrong classname (Plugin Prefix was wrong). Really strange that everything else worked...
# Oct 15th 2019, 11:41 ndm Check the file name, class name, namespace, etc...
# Oct 15th 2019, 11:40 ndm There you go, the class probably couldn't be found. If `$this->Conferences->CallForPapers->getTarget()` is `\Cake\ORM\Table`, then the problem already starts with the table class. Otherwise it's just the entity class.
# Oct 15th 2019, 11:37 jotpe Hm. `$conference->call_for_paper` is `object(Cake\ORM\Entity)`
# Oct 15th 2019, 11:35 ndm Either `$this->submission_begin` is `null`, or `$conference->call_for_paper` is not an instance of `CallForPaper`.
# Oct 15th 2019, 11:30 jotpe I can access `$conference->call_for_paper` but not `$conference->call_for_paper->active`
# Oct 15th 2019, 11:29 slackebot1 <jotpe>
# Oct 15th 2019, 11:29 jotpe Any suggestions, why my getter always returns null?
# Oct 15th 2019, 11:26 neothermic if there's a callback, then `call_user_func_array` is returned, which returns `mixed` :P
# Oct 15th 2019, 11:25 neothermic it has `@return string The decoded/processed request data.` which is only true if there's no callback
# Oct 15th 2019, 11:24 neothermic heh, the `@return` on `ServerRequest::input` is wrong :P
# Oct 15th 2019, 10:42 ruth.cantoni :slightly_smiling_face:
# Oct 15th 2019, 10:42 alexdd55976 this is way those folders in they special folders :)
# Oct 15th 2019, 10:40 ruth.cantoni yes components are for controllers
# Oct 15th 2019, 10:39 neothermic components are for controllers, beahvoirs are for models. :P
# Oct 15th 2019, 10:39 ruth.cantoni a plugin as a module actually, but I qould like it to expose some method and my first though was about component: I may be wrong
# Oct 15th 2019, 10:39 alexdd55976 yes... this is why things could be components/behaviors... some times its a point of view.
# Oct 15th 2019, 10:38 neothermic they're also more for models, in 2.x speak
# Oct 15th 2019, 10:38 neothermic like we have behaviours that add in who created/updated a thing (called the ByBehaviour), or does transparent compression of fields (CompressibleBehaviour) or does changelogging
# Oct 15th 2019, 10:37 neothermic behaviours are, IMO, more for automagic things
# Oct 15th 2019, 10:36 alexdd55976 could be a component also
# Oct 15th 2019, 10:36 alexdd55976 depends on hwo things are handled
# Oct 15th 2019, 10:36 alexdd55976 barcodes, pdfs e.g. i would put them in behaviors.. my first thought at least
# Oct 15th 2019, 10:35 neothermic if I were re-doing that, I'd possibly implement those under either a custom namespace or keep them as components, depending on how cake-related I need them to be
# Oct 15th 2019, 10:35 neothermic because putting that into a controller/model/whatever didn't make sense
# Oct 15th 2019, 10:35 neothermic eg: we have components for emails/letters/labels/pdfs/barcodes
# Oct 15th 2019, 10:34 neothermic Components are more useful for actions controllers can do that are independent of the controller, or at leas that's what we use them for
# Oct 15th 2019, 10:33 alexdd55976 that gives me a weird gut feeling though... don't know if makes sense, but does not feel right
# Oct 15th 2019, 10:33 alexdd55976 A Component as "module"?
# Oct 15th 2019, 10:32 ruth.cantoni Thanks @neothermic, at the moment I'm oriented towards Components, and I'm using cakePHP 3.8.4. I'll have a try and then tell you if I had success