# |
Aug 13th 2019, 15:19 |
neon1024 |
Have a look at how some soft delete plugins work |
# |
Aug 13th 2019, 15:19 |
neon1024 |
Well if you stop the event in beforeDelete, the deletion will not happen |
# |
Aug 13th 2019, 15:18 |
latenal |
@neon1024, I mean an error that would make `delete` method return `false` |
# |
Aug 13th 2019, 15:17 |
neon1024 |
@spriz Yes |
# |
Aug 13th 2019, 15:17 |
spriz |
@neon1024 did you have debug => true? :) |
# |
Aug 13th 2019, 15:17 |
neon1024 |
Events can return data, so you could return an error |
# |
Aug 13th 2019, 15:16 |
neon1024 |
Sure, just return it |
# |
Aug 13th 2019, 15:16 |
latenal |
Hi, is there a way to send an error from `beforeDelete` event when I stop propagation? |
# |
Aug 13th 2019, 15:08 |
spriz |
Great, then I know which one is the wrong one!! :) |
# |
Aug 13th 2019, 15:08 |
neon1024 |
`2019-08-13 15:07:48 Error: [RuntimeException] Bar in /Users/davidyell/Sites/CallQualityTool/src/Shell/ExampleShell.php on line 32` |
# |
Aug 13th 2019, 15:08 |
neon1024 |
I just get one |
# |
Aug 13th 2019, 15:06 |
spriz |
I have ``` |
# |
Aug 13th 2019, 15:05 |
spriz |
Is this something weird going on with some Cake ErrorHandler, Monolog, some other dependency or what the f... :) :thinking_face: |
# |
Aug 13th 2019, 15:05 |
spriz |
Could someone be an amazing person and check if you put `throw new \RuntimeException('Bar');` in a shell/command - do you have 2 outputs in your stderr mentioning 'Bar'? :thinking_face: :thinking_face: |
# |
Aug 13th 2019, 14:45 |
admad |
:rolling_on_the_floor_laughing: |
# |
Aug 13th 2019, 14:44 |
neon1024 |
The tests passed ;) |
# |
Aug 13th 2019, 14:44 |
admad |
wipe the smug off ya face will ya :) |
# |
Aug 13th 2019, 14:43 |
neon1024 |
Haha |
# |
Aug 13th 2019, 14:42 |
admad |
doh, one for pic change for my brain to register :P |
# |
Aug 13th 2019, 14:41 |
neon1024 |
Tis the season eh @dereuromark :P |
# |
Aug 13th 2019, 14:38 |
spriz |
@neon1024 Oh it is neat for sure! :clap: |
# |
Aug 13th 2019, 14:33 |
neon1024 |
I’ve not heard of Sentry before, it looks kinda cool |
# |
Aug 13th 2019, 14:33 |
spriz |
Whack-a-doodle! It seems like all the crappy ones has `[ExceptionName]` pattern |
# |
Aug 13th 2019, 14:31 |
neon1024 |
Not me, sorry @spriz |
# |
Aug 13th 2019, 14:25 |
spriz |
Is anyone else using Monolog and Sentry in their Cake app? :thinking_face: I'm having an issue with duplicated entries in our Sentry that is not completely equal and I cannot figure out from where they origin.... https://drive.bondev.dk/d/f/504009216103594656 |
# |
Aug 13th 2019, 14:20 |
spriz |
Setting `App.Error.log` to `false` removes 2nd one :slightly_smiling_face: |
# |
Aug 13th 2019, 14:19 |
spriz |
Ah, first one is ConsoleErrorHandler it seems, and 2nd is the log entry that goes to stdout as well |
# |
Aug 13th 2019, 14:15 |
spriz |
as you can see the shell only contains `throw new \RuntimeException('Bar');` |
# |
Aug 13th 2019, 14:14 |
spriz |
First at line 11 without trace and then line 12 with trace :thinking_face: |
# |
Aug 13th 2019, 14:14 |
spriz |
Any idea why this shell would show exception stuff twice in my CLI? :thinking_face: :) |
# |
Aug 13th 2019, 14:12 |
neothermic |
didn't realise it was showing the percentage as a circle :) |
# |
Aug 13th 2019, 14:11 |
neothermic |
and until I got above 0.5%, I always assumed the logo for coverage was a red circle |
# |
Aug 13th 2019, 14:11 |
neothermic |
it's SonarQube |
# |
Aug 13th 2019, 14:09 |
neon1024 |
Swanky gui |
# |
Aug 13th 2019, 14:09 |
neothermic |
it's infinitely better than last monday ;) |
# |
Aug 13th 2019, 14:09 |
ricksaccous |
PROGRESS R O G R E S S |
# |
Aug 13th 2019, 14:08 |
neothermic |
YES |
# |
Aug 13th 2019, 14:03 |
slackebot1 |
] ########################### \tests\TestCase\Model\Table\ArticlesTableTest.php (line 96) ########## DEBUG ########## [ (int) 0 => 'articles', (int) 1 => 'articles_tags', (int) 2 => 'tags' ] ########################### ``` |
# |
Aug 13th 2019, 14:03 |
slackebot1 |
ConnectionManager::get('default'); $stmt = $connection->query('SHOW TABLES'); $result = $stmt->fetchAll(); $stmt->closeCursor(); debug($result); $collection = $connection->getSchemaCollection(); debug($collection->listTables()); ``` ``` \tests\TestCase\Model\Table\ArticlesTableTest.php (line 93) ########## DEBUG ########## [ (int) 0 => [ (int) 0 => 'articles' ], (int) 1 => [ (int) 0 => 'articles_tags' ], (int) 2 => [ (int) 0 => 'tags' ] |
# |
Aug 13th 2019, 14:03 |
ndm |
@mehov works fine, maybe you have auto fixtures disabled, `$this->fixtureManager->loaded()` doesn't really say anything about the state of the database, as "loaded" here means just that the fixture classes have be loaded, not that they have been applied. The naming here wasn't really the best choice, especially because `FixtureManager::load()` and `FixtureManager::loadSingle()` will actually apply the fixtures. ``` $connection = |
# |
Aug 13th 2019, 13:34 |
neothermic |
ahh,r ight |