# |
Jun 13th 2018, 15:40 |
itmpls |
i shouldn't need to bake/create a class for audit stash, or do I? |
# |
Jun 13th 2018, 15:34 |
lorenzo |
no, that should be it |
# |
Jun 13th 2018, 15:34 |
itmpls |
@lorenzo - once I have the table up and I added the behavior to my table and once a record gets modified/created in that table, is there any other thing I setup before it starts dumping into audit_stash? |
# |
Jun 13th 2018, 15:21 |
lorenzo |
:slightly_smiling_face: |
# |
Jun 13th 2018, 15:21 |
itmpls |
i'll just manually create it |
# |
Jun 13th 2018, 15:21 |
itmpls |
ah np |
# |
Jun 13th 2018, 15:20 |
neon1024 |
Hah, perhaps you can ask @lorenzo :P |
# |
Jun 13th 2018, 15:20 |
lorenzo |
working on that |
# |
Jun 13th 2018, 15:20 |
neon1024 |
Ah, there is only 1 |
# |
Jun 13th 2018, 15:20 |
lorenzo |
newer phinx is not yet in the migrations plugin |
# |
Jun 13th 2018, 15:20 |
neon1024 |
Is that in the correct set of migrations you are running? |
# |
Jun 13th 2018, 15:19 |
itmpls |
well, it creates 'audit_stash_phinxlog' but not audit_stash for example |
# |
Jun 13th 2018, 15:18 |
neon1024 |
Which included BC breaks |
# |
Jun 13th 2018, 15:18 |
itmpls |
oh |
# |
Jun 13th 2018, 15:18 |
neon1024 |
Do bear in mind that Phinx was recently updated |
# |
Jun 13th 2018, 15:18 |
neon1024 |
Well plugins with correct migrations should create a `pluginName_phinxlog` table |
# |
Jun 13th 2018, 15:18 |
itmpls |
this one specifically: https://github.com/lorenzo/audit-stash/blob/master/src/config/Migrations/20171018185609_CreateAuditLogs.php |
# |
Jun 13th 2018, 15:18 |
itmpls |
anyone know why a migration would create a _phinxlog table and the migration appears to work when running migrate -p Foo -t blah but the actual table isn't created? |
# |
Jun 13th 2018, 14:37 |
zmurphy |
Ah, didn't even think of that. Thanks |
# |
Jun 13th 2018, 14:36 |
jeremyharris |
if you are mixing new with existing, then the other format is probably the way to go. association.0.id if it exists, association.1.name for new ones |
# |
Jun 13th 2018, 14:34 |
zmurphy |
What's the appropriate way in a form to set up controls for both attaching an existing association and adding a new one. I know for existing I can use `$this->Form->control('association._ids', ['options' => $association])` but would that conflict with also having an option to add new associations? |
# |
Jun 13th 2018, 13:21 |
josbeir |
classic, should v mentioned that :P |
# |
Jun 13th 2018, 13:19 |
Martin` |
ok fixed my problem, I had to add contacts to the accessible array of the entity :P |
# |
Jun 13th 2018, 13:08 |
josbeir |
oh snap ! |
# |
Jun 13th 2018, 13:07 |
dereuromark |
hah, didnt know that these threads are also all published at https://irc.cakephp.org/ :P |
# |
Jun 13th 2018, 13:07 |
josbeir |
i'll do my best ! |
# |
Jun 13th 2018, 13:07 |
josbeir |
didnt investigate it in detail, sorry |
# |
Jun 13th 2018, 13:07 |
dereuromark |
only if you help me to make them more awesome though :P |
# |
Jun 13th 2018, 13:07 |
josbeir |
:) ok |
# |
Jun 13th 2018, 13:06 |
dereuromark |
but you are free to use some cakephp plugins from me :) |
# |
Jun 13th 2018, 13:06 |
dereuromark |
those are not plugins, neither are they open source (open code). |
# |
Jun 13th 2018, 13:01 |
josbeir |
i could maybe use some plugins for your project ;) |
# |
Jun 13th 2018, 13:01 |
josbeir |
but i guess i'll continue building it like that for now, i liked my elasticsearch first aproach, that tech is mature enough these days to do it like that |
# |
Jun 13th 2018, 13:00 |
josbeir |
100k inventory |
# |
Jun 13th 2018, 13:00 |
josbeir |
well, i was planning to build a platform to host all those small ones on |
# |
Jun 13th 2018, 12:59 |
josbeir |
alright, thats what i tought |
# |
Jun 13th 2018, 12:52 |
Martin` |
no did not fix it |
# |
Jun 13th 2018, 12:51 |
Martin` |
lets try to be sure. but I see content that I did put in database in variables |
# |
Jun 13th 2018, 12:50 |
josbeir |
make sure your table gets detected etc... |
# |
Jun 13th 2018, 12:49 |
josbeir |
did you just create the table? maybe clear the ORM cache |
# |
Jun 13th 2018, 12:48 |
Martin` |
and I'm also doing it in an other controller there it works fine |