Log message #4201869

# At Username Text
# Sep 5th 2019, 14:46 itmpls what's overkill?
# Sep 5th 2019, 14:44 dereuromark you can do it, but it seems a bit overkill
# Sep 5th 2019, 14:44 itmpls not in vendor
# Sep 5th 2019, 14:43 itmpls i mean versus in App itself
# Sep 5th 2019, 14:43 dereuromark if it is inside the same projects /plugins folder there are no additional costs usually, so thats pretty cheap compared to the vendor overhead.
# Sep 5th 2019, 14:41 itmpls organization wise is it ideal to put your own custom library (only to be used by this current app) as its own . plugin?
# Sep 5th 2019, 14:42 dereuromark why do you want to do it in the first place?
# Sep 5th 2019, 14:40 ndm @alexdd55976 https://github.com/cakephp/bake/issues?q=is%3Aissue+as_array+is%3Aclosed
# Sep 5th 2019, 14:41 ondrej.nedvidek definitively Nedvajz on fire today !
# Sep 5th 2019, 14:41 ondrej.nedvidek :partyparrot:
# Sep 5th 2019, 14:40 ondrej.nedvidek user error .. sorry for wasting your time :)
# Sep 5th 2019, 14:40 ndm Probably... maybe if you show how exactly you try to use the data in your extended template
# Sep 5th 2019, 14:36 alexdd55976 is that a known error
# Sep 5th 2019, 14:37 ondrej.nedvidek @ndm thanks for reply .. well, then it is 'user' error .. shize .. where it could be .. but thank you for confirming !
# Sep 5th 2019, 14:36 alexdd55976 cake 4 / bake `Unknown "as_array" filter. in [C:\webroot\cakeeib\vendor\cakephp\bake\templates\bake\Model\table.twig, line 51]`
# Sep 5th 2019, 14:36 ndm @ondrej.nedvidek Both should work, `set()` as well as `assign()/fetch()`
# Sep 5th 2019, 14:35 ondrej.nedvidek so there is no option or you are not aware about ? :O
# Sep 5th 2019, 14:30 david098 No luck...
# Sep 5th 2019, 14:26 slackebot part of controller action. Any help?
# Sep 5th 2019, 14:26 ondrej.nedvidek Hi there, I am inheriting view and want to pass variable from current view to the parent ``` $this->set('foo', 'bar'); $this->extend('/Common/Posts/view'); ``` I have tried to use `$this->assign('foo', 'bar');` and fetch in Common/Posts/view `$this->fetch('foo')` Also tried `$this->set('foo', 'bar');` and then access in Common/Posts/view `$foo` But no luck either way. It is related to view appearance so I don't think it should be
# Sep 5th 2019, 14:25 ricksaccous @david098 replace the contain by matching, if you need the contain then use both the contain and a matching i suppose
# Sep 5th 2019, 14:24 davorminchorov the form looks like the xeditable jquery plugin where the records for each row can be edited
# Sep 5th 2019, 14:22 davorminchorov Hi, I have a list of records that I want to display on the page, and I am using the paginator but I noticed that the form is lazily loading the form fields as I scroll down. Is there any way to display all (or specific limit of those records) at once before it starts paginating the rest of the records?
# Sep 5th 2019, 14:22 david098 do you mean replace the contain by matching? or add an extra matching ?
# Sep 5th 2019, 14:17 ricksaccous try it...
# Sep 5th 2019, 14:17 david098 Could be the solution, but my brain freezes at the moment, so any suggestion is welcome...
# Sep 5th 2019, 14:14 ricksaccous @david098 wouldn't you just need a matching on statements as well?
# Sep 5th 2019, 14:14 ricksaccous no problem
# Sep 5th 2019, 14:12 g.catania thanks anyway
# Sep 5th 2019, 14:12 g.catania ok solved. My bad! I was using the very same key "capabilities-".$this->request->getSession()->read('Auth.User.id') in two different queries holding different things. I messed up :)
# Sep 5th 2019, 14:12 david098 I added my question to stack overflow, so any help is welcome : https://stackoverflow.com/questions/57807225
# Sep 5th 2019, 14:05 maymeow updated :)
# Sep 5th 2019, 14:04 spriz I'd follow official docs ;P https://book.cakephp.org/3.0/en/orm/table-objects.html#customizing-the-entity-class-a-table-uses
# Sep 5th 2019, 14:04 maymeow when i want to change entity class i can use `protected $_entityClass = ApplicationUser::class;` ??
# Sep 5th 2019, 14:03 slackebot public function validationDefault(Validator $validator) { parent::validationDefault($validator); // TODO: Change the autogenerated stub return $validator; } } ```
# Sep 5th 2019, 14:03 maymeow its cake php ok when i extending table and entity classes? ``` class ApplicationUsersTable extends UsersTable { protected $_entityClass = ApplicationUser::class; public function initialize(array $config) { parent::initialize($config); // TODO: Change the autogenerated stub $this->hasMany('Addresses', [ 'foreignKey' => 'user_id', 'className' => 'PostBox.Addresses' ]); }
# Sep 5th 2019, 13:53 ricksaccous also you might want to clear the cache
# Sep 5th 2019, 13:53 ricksaccous what do you get?
# Sep 5th 2019, 13:52 ricksaccous if you debug after calling toArray()
# Sep 5th 2019, 13:51 g.catania nothing changed
# Sep 5th 2019, 13:51 g.catania I tried already both toArray() and execute()