# |
Mar 1st 2018, 16:21 |
alexmax |
The database field was not a tinyint(1) |
# |
Mar 1st 2018, 16:21 |
angelxmoreno |
do teel |
# |
Mar 1st 2018, 16:21 |
alexmax |
It was a problem with the DB |
# |
Mar 1st 2018, 16:21 |
alexmax |
I figured it out |
# |
Mar 1st 2018, 16:20 |
angelxmoreno |
@alexmax have you inspected the entity and checked if the fields are protected ? |
# |
Mar 1st 2018, 15:55 |
alexmax |
including those that have underscores at the start |
# |
Mar 1st 2018, 15:54 |
alexmax |
and other fields seem to work just fine |
# |
Mar 1st 2018, 15:54 |
alexmax |
interesting - the field is dirty, in spite of the value not being set |
# |
Mar 1st 2018, 15:25 |
angelxmoreno |
but I do want to ask you @alexmax . I want to ask you specifically |
# |
Mar 1st 2018, 15:02 |
alexmax |
Just how the schema was created |
# |
Mar 1st 2018, 15:01 |
alexmax |
Don't ask me. :P |
# |
Mar 1st 2018, 15:01 |
dereuromark |
why the prefix underscore? |
# |
Mar 1st 2018, 14:58 |
alexmax |
@dereuromark https://paste.ee/p/GK6mH - the field in question is `_all_day`. It's boolean true here, but when I newEntity() with the data as a parameter, it is set to **NULL** |
# |
Mar 1st 2018, 14:43 |
dereuromark |
also note, that you are not patching here, newEntity() does patch, so you should check errors on $entity returned, maybe it couldnt due to validation errors? |
# |
Mar 1st 2018, 14:43 |
dereuromark |
you need to pastebin how your $data looks like |
# |
Mar 1st 2018, 14:36 |
alexmax |
That seems like a bug to me....guess I deserve it for still using 3.2.9. |
# |
Mar 1st 2018, 14:36 |
alexmax |
But if I do `$entity = $this->DocumentsTable->DocumentDates->newEntity(); $entity->set($data)`, it populates. |
# |
Mar 1st 2018, 14:35 |
alexmax |
I found a field that will not populate with ` $entity = $this->DocumentsTable->DocumentDates->newEntity($data);` |
# |
Mar 1st 2018, 14:35 |
alexmax |
Wow, this is nutty |
# |
Mar 1st 2018, 14:05 |
jbehling |
I load the Helper in *AppView* |
# |
Mar 1st 2018, 14:05 |
jbehling |
Does anyone know what can it be? |
# |
Mar 1st 2018, 14:05 |
jbehling |
When i load `$this->loadHelper('MyPlugin.My');` show this *Helper class MyHelper could not be found.* |
# |
Mar 1st 2018, 13:20 |
angelxmoreno |
muffin/footprint :thumbsup: |
# |
Mar 1st 2018, 13:19 |
admad |
or use a plugin like muffin/footprint |
# |
Mar 1st 2018, 13:19 |
admad |
@angelxmoreno this is how you should get user id https://github.com/lorenzo/audit-stash#storing-the-logged-in-user |
# |
Mar 1st 2018, 13:18 |
dereuromark |
we should document how to use prefer-lowest :slightly_smiling_face: that will find these things in travis |
# |
Mar 1st 2018, 13:17 |
admad |
https://github.com/angelxmoreno/cakephp-auditor/blob/master/src/Model/Behavior/AuditBehavior.php#L180 so your plugin will fail if using a stateless auth |
# |
Mar 1st 2018, 13:16 |
angelxmoreno |
travis is going to help identify other noncompatible uses |
# |
Mar 1st 2018, 13:16 |
angelxmoreno |
TYTY! |
# |
Mar 1st 2018, 13:15 |
admad |
i suggest updating the constraints to 3.4 |
# |
Mar 1st 2018, 13:15 |
admad |
you claim it to be 3.0+ but it won't work in older 3.x due to usage like this https://github.com/angelxmoreno/cakephp-auditor/blob/master/src/Model/Behavior/AuditBehavior.php#L35 `getTable()` was probably added in 3.4 / 3.5 |
# |
Mar 1st 2018, 13:14 |
angelxmoreno |
`"type": "cakephp-plugin",` :thinking_face: |
# |
Mar 1st 2018, 13:13 |
dereuromark |
perfect |
# |
Mar 1st 2018, 13:13 |
angelxmoreno |
cool cool. i volunteer to update that section! once i learn it ofcourse :P |
# |
Mar 1st 2018, 13:13 |
dereuromark |
in 3.x these 2.x artifacts are not needed |
# |
Mar 1st 2018, 13:12 |
dereuromark |
remove https://github.com/angelxmoreno/cakephp-auditor/blob/master/composer.json#L36 - that will kill it |
# |
Mar 1st 2018, 13:12 |
angelxmoreno |
i only looked at 2, lol! |
# |
Mar 1st 2018, 13:12 |
dereuromark |
we should complete/update https://book.cakephp.org/3.0/en/plugins.html#publish-your-plugin - it is missing a few important things |
# |
Mar 1st 2018, 13:11 |
dereuromark |
did you forgot the vital type? see the many hundred plugins available, e.g. mine |
# |
Mar 1st 2018, 13:10 |
angelxmoreno |
but i have no clue how to make it such that on install, it saves to `plugins/Auditor` and not `vendor/angelxmoreno/cakephp-auditor/` |
# |
Mar 1st 2018, 13:09 |
dereuromark |
it is as with every normal open source repo. hook, done |