Logs for #cakephp

Page 1 of 36,478, showing 100 records out of 3,647,701 total, starting on record 1, ending on 100

# At Username Text
# Today, 12:30 alexdd55976 its cake 3.6
# Today, 12:29 alexdd55976 `NOT IN`??
# Today, 12:29 alexdd55976 am i wrong with the statement?
# Today, 12:29 alexdd55976 there are tracking_ids in the variable.
# Today, 12:27 alexdd55976 but get this `Impossible to generate condition with empty list of values for field (tracking_id)`v
# Today, 12:27 alexdd55976 trying to do this ```$Times->deleteAll([ 'Times.model_id' => 7, 'Times.model_primary_key' => $entity->id, 'Times.tracking_id NOT IN' => $tracking_ids ]);```
# Today, 12:27 alexdd55976 hey fellows
# Today, 10:24 challgren @luizcmarin we updated the README.md to include setTable instead of table. Also you may want to be looking at https://github.com/UseMuffin/Sti/tree/cake-4.x as thats more specific to Cake 4 and the master branch is for 3.6+
# Today, 00:27 luizcmarin very complex, I am confused and tired. Tomorrow I try to start again. The plugin is good, congratulations to those who did it. But my knowledge and ability to understand are greatly reduced. Thanks for the help @challgren. Willing people like you and some of the support is what dignifies the "kitchen of the cake". Good evening.
# Yesterday, 23:44 luizcmarin examinando
# Yesterday, 23:43 challgren The tests show you how to use it in a more technical sense and what to expect
# Yesterday, 23:39 luizcmarin mamma mia.... moment, muuuch moments :tired_face:
# Yesterday, 23:33 challgren https://github.com/UseMuffin/Sti/blob/master/tests/TestCase/Model/Behavior/StiBehaviorTest.php#L36
# Yesterday, 23:33 challgren https://github.com/UseMuffin/Sti/blob/master/tests/test_app/Model/Table/CooksTable.php
# Yesterday, 23:32 challgren https://github.com/UseMuffin/Sti/blob/master/tests/TestCase/Model/Behavior/StiBehaviorTest.php#L46
# Yesterday, 23:30 challgren Yes, you just need to use the sti_caixas table to do your queries. The find/get will return the corrected entity type
# Yesterday, 23:29 luizcmarin but can i create a menu for each type? and the screens too?
# Yesterday, 23:28 challgren You wont have tables called caixa, caixapagar, and caixareceber. Those are entities. The sti_caixas table is what holds your data
# Yesterday, 23:27 luizcmarin now i'm really confused. Give me time to understand your concept and test it out.
# Yesterday, 23:24 challgren and add conditions => [‘type’ => ‘caixa’] to your paginate
# Yesterday, 23:23 challgren Yes so you need to change your $modelClass in your controller to be StiCaixas
# Yesterday, 23:23 slackebot       'caixa' _=>_ 'App\Model\Entity\Caixa',                 'caixapagar' _=>_ 'App\Model\Entity\CaixaPagar',                 'caixareceber' _=>_ 'App\Model\Entity\CaixaReceber',             ]         ]);         _$this->setEntityClass_('App\Model\Entity\Caixa'); _// default_
# Yesterday, 23:23 luizcmarin it's in StiCaixasTable: _public_ _function_ _initialize_(_array_ _$config_)_:_ _void_     {         _parent::initialize_(_$config_);         _$this->setTable_('sti_caixas');         _$this->setDisplayField_('id');         _$this->setPrimaryKey_('id');         _// sti_          _$this->addBehavior_('Muffin/Sti.Sti', [             'typeMap' _=>_ [          
# Yesterday, 23:22 challgren You need to use the StiTable you attached the behavior to
# Yesterday, 23:21 luizcmarin _public_ _function_ _index_()     {         _$this->paginate_ _=_ [             'contain' _=>_ ['Pessoas', 'PlanoContas', 'Pedidos'],         ];         _$Caixas_ _=_ _$this->paginate_(_$this->Caixas_);         _$this->set_(compact('Caixas'));     }
# Yesterday, 23:21 luizcmarin I created CaixasController.
# Yesterday, 23:20 challgren Ok so your reading data, whats that call to read the data?
# Yesterday, 23:16 luizcmarin when I try to access http: // localhost: 8765 / caixas
# Yesterday, 23:15 challgren What is causing the error are you trying to save, trying to read?
# Yesterday, 23:14 slackebot " Shouldn't he go to sti_caixas?
# Yesterday, 23:14 slackebot ------> THIS TABLE IS NOT REAL 'caixareceber' => 'App\Model\Entity\CaixaReceber', ------> THIS TABLE IS NOT REAL ] ]); $this->setEntityClass('App\Model\Entity\Caixa'); // default I created the entities box, box, box and box. I created the add, edit, view, index screens. However, I get the following error: " SQLSTATE [42S02]: Base table or view not found: 1146 Table 'ola_ney.caixas' doesn't exist
# Yesterday, 23:14 luizcmarin excuse me. I was writing the situation. $this->setTable('sti_caixas'); ------> THIS TABLE IS REAL $this->setDisplayField('id'); $this->setPrimaryKey('id'); // sti $this->addBehavior('Muffin/Sti.Sti', [ 'typeMap' => [ 'caixa' => 'App\Model\Entity\Caixa', ------> THIS TABLE IS NOT REAL 'caixapagar' => 'App\Model\Entity\CaixaPagar',
# Yesterday, 23:12 challgren @luizcmarin please stop saying it has errors and not including what the error thats not very conductive to figuring out your issue.
# Yesterday, 23:11 slackebot loaded via $this->addPlugin(), you may need to update bin/cake.php to match https://github.com/cakephp/app/tree/master/bin/cake.php In [/home/vagrant/code/vendor/cakephp/cakephp/src/Console/ShellDispatcher.php, line 332]``` The migrations seems to be created successfully but marking it as done generates an error.
# Yesterday, 23:11 cakephp-slack I’m having an issue with migrations in a fresh CakePHP 4 install: ```$ bin/cake bake migration_snapshot Initial Creating file /home/vagrant/code/config/Migrations/20200124230841_Initial.php Wrote `/home/vagrant/code/config/Migrations/20200124230841_Initial.php` Marking the migration 20200124230841_Initial as migrated... Exception: Shell class for "Migrations" could not be found. If you are trying to use a plugin shell, that was
# Yesterday, 22:58 luizcmarin I followed all the guidelines of the STI. At least, I believe so. But I have doubts because of some errors
# Yesterday, 22:56 luizcmarin @challgren disponible?
# Yesterday, 21:43 wnasich @challgren thanks!
# Yesterday, 21:42 challgren https://github.com/burzum/cakephp-service-layer might be useful to you @wnasich you might need to update it for cake4
# Yesterday, 21:42 wnasich ops, thanks!
# Yesterday, 21:32 kiwi_74 @wnasich Thanks. That's what I was looking for :)
# Yesterday, 21:30 wnasich Hello, with CakePHP 4 , is there a easy way to implement a service layer ?
# Yesterday, 21:30 wnasich now you have the shell command `cake bake`
# Yesterday, 21:28 wnasich maybe that was the 'scaffolding' feature on previous releases
# Yesterday, 21:16 kiwi_74 Hello Everyone. I seem to remember cake being able to create default views which showed the rows of a table, but I can't find any info on it. Is there such a thing, or am I just imagining it, lol?
# Yesterday, 19:51 challgren Also close https://github.com/UseMuffin/Sti/issues/8 since you figured it out
# Yesterday, 19:49 challgren You can do a PR
# Yesterday, 19:37 luizcmarin @challgren I find other differences between what is on the website and cake 4. How can I report this? Should I report? for example, on the website it says "$ this-> table ('sti_cooks');" but in cake4 it should be "$ this-> setTable ('sti_cooks');", do you agree? There is no way to suggest the changes I encounter.
# Yesterday, 19:27 luizcmarin @challgren Everything is OK. Let's work ..... thanks
# Yesterday, 19:25 luizcmarin :hugging_face:
# Yesterday, 19:25 slackebot <luizcmarin>
# Yesterday, 19:23 challgren sorry drop the use part
# Yesterday, 19:22 luizcmarin [InvalidArgumentException] Could not find a matching version of package usemuffin/sti. Check the package spelling, your version cons traint and that the package is available in a stability which matches your minimum-stability (dev).
# Yesterday, 19:21 challgren maybe try `composer require usemuffin/sti:2.0.0-beta`
# Yesterday, 19:21 luizcmarin I run cake 4.0.2
# Yesterday, 19:20 challgren oh that should be fine. But if its install 1.0.0 it seems you’re running cake 3.x
# Yesterday, 19:20 luizcmarin change to beta?
# Yesterday, 19:20 luizcmarin I have "minimum-stability": "dev".
# Yesterday, 19:19 challgren yes in the root
# Yesterday, 19:19 luizcmarin Hello @challgren. I thought I was off ... should I add that to composer.json?
# Yesterday, 19:17 challgren @luizcmarin you probably need `"minimum-stability": "beta"` in your composer.json https://getcomposer.org/doc/04-schema.md#minimum-stability
# Yesterday, 19:09 luizcmarin OK. Does anybody know how to solve this? https://cakesf.slack.com/archives/C053DPNGT/p1579880879178400
# Yesterday, 16:50 kiwi_10 a user can update the doc for me please ? I don't have a Github account
# Yesterday, 16:50 kiwi_10 The new function to use for mimetypes definitions is setTypeMap : https://api.cakephp.org/3.6/class-Cake.Http.Response.html#_setTypeMap
# Yesterday, 16:49 kiwi_10 use an array as param don't work
# Yesterday, 16:49 kiwi_10 and the good answer is the one of the API
# Yesterday, 16:49 kiwi_10 but, in the API, I need to use a string as param for this same function : https://api.cakephp.org/3.6/class-Cake.Http.Response.html#_withType
# Yesterday, 16:48 kiwi_10 the doc tell us to use an array for mimetypes definitions
# Yesterday, 16:48 kiwi_10 there is an error in the CakePHP doc : https://book.cakephp.org/3/fr/controllers/request-response.html#Cake\Http\Response::withType
# Yesterday, 15:47 luizcmarin @challgren @admad https://github.com/UseMuffin/Sti/issues/8 (starting tests)
# Yesterday, 14:22 rudy1976s @steinkel thank you Jorge ! I am facing problems using plugin with ADmad i18n , getting redirect loop when using routes with /:lang
# Yesterday, 12:56 steinkel https://www.cakedc.com/jorge_gonzalez/2020/01/17/users-plugin-9-x-for-cakephp4 this could help
# Yesterday, 12:55 rudy1976s I am working on implementing CakeDC Users plugin 9.x on a cake 4.0.2 installation. I have also installed admad i18n plugin : I am facing a lot of issues with infinite loops when trying to access login : I have tried to follow docs but it is very difficult because some time docs refers to last version while some other to 3.x: anyone here use UsersPlugin ?
# Yesterday, 12:51 rudy1976s good afternoon!
# Yesterday, 12:04 neon1024 Opened an issue :point_right: https://github.com/riesenia/cakephp-duplicatable/issues/44
# Yesterday, 11:48 neon1024 For conditionally empty associated fields
# Yesterday, 11:47 neon1024 Anyone know if duplicatable takes a callback in the ‘remove’ config option?
# Yesterday, 10:10 neon1024 I wonder if it’s easier to hook into the behaviours existing methods, as it must have to do this calculation
# Yesterday, 10:09 neon1024 :thinking_face: I was so sure there was already a method. Perhaps I’m thinking of the Tree Behaviour
# Yesterday, 10:07 challgren That gist may need some cleanup but it should work for yah. I honestly havent used it in a year or so
# Yesterday, 10:06 alexdd55976 Is there any way to catch the error log writing process and trigger something with that information
# Yesterday, 10:05 challgren https://gist.github.com/challgren/fbe500197d09f584a0fbc2aac710d3b6
# Yesterday, 10:04 neon1024 Duplicatable has a 4 branch, TIL
# Yesterday, 10:04 neon1024 @challgren Countercache, I’m running 3.8
# Yesterday, 10:04 alexdd55976 Morning
# Yesterday, 10:04 challgren no for counter cache
# Yesterday, 10:04 neon1024 I’m not aware that the duplicatable behaviour supports 4
# Yesterday, 10:03 neon1024 Which I presume is because its’ looking for a property called `script_composed_of`, but I’ve aliased it to `'propertyName' => 'parts',`
# Yesterday, 10:03 challgren neon 3 or 4?
# Yesterday, 10:03 neon1024 https://github.com/riesenia/cakephp-duplicatable/blob/master/src/Model/Behavior/DuplicatableBehavior.php#L269
# Yesterday, 10:03 neon1024 ```Warning (2): Invalid argument supplied for foreach() [ROOT/vendor/riesenia/cakephp-duplicatable/src/Model/Behavior/DuplicatableBehavior.php, line 269]```
# Yesterday, 10:02 neon1024 Anyone know if the Duplicatable behaviour works with custom property names?
# Yesterday, 09:51 neon1024 Or am I imagining that? I was sure there was a method to populate initial values, rather than them all being 0 until an update
# Yesterday, 09:50 neon1024 Wasn’t there a shell command for calculating counter cache?
# Yesterday, 08:28 challgren Evening all
# Yesterday, 08:20 gianmarxgagliardi morning all
# Yesterday, 06:24 matiur756 good morning everybody
# Yesterday, 06:24 javier.villanueva morning all
# Jan 23rd, 22:09 ndm you're welcome
# Jan 23rd, 21:57 k4t Thank you guys for your time! Really appreciate