# |
Jun 13th 2019, 14:21 |
dereuromark |
or did you also clear those? |
# |
Jun 13th 2019, 14:21 |
dereuromark |
they have been marked as migrated for a reason there |
# |
Jun 13th 2019, 14:21 |
dereuromark |
you cant just remove/clear tables |
# |
Jun 13th 2019, 14:11 |
noel |
Not really understanding migrations. I created a migration from my db using `bin/cake bake migration_snapshot`, then I cleared my db to test the migration and ran `bin/cake migrations migrate`, which reported success but no tables were created in the db? |
# |
Jun 13th 2019, 13:25 |
dereuromark |
yeah thats why we use it :slightly_smiling_face: with an IDE it is even just single clicks. |
# |
Jun 13th 2019, 13:23 |
noel |
It's quite useful if you're still designing and prototyping because sometimes table names changes and such. |
# |
Jun 13th 2019, 13:22 |
noel |
It's fine I can use `git clean -df` instead. |
# |
Jun 13th 2019, 13:15 |
dereuromark |
overwriting is more common here |
# |
Jun 13th 2019, 13:15 |
dereuromark |
thats not a general use case |
# |
Jun 13th 2019, 13:15 |
dereuromark |
no |
# |
Jun 13th 2019, 13:14 |
noel |
Is there a bake command to delete scaffolding? |
# |
Jun 13th 2019, 13:09 |
awi |
I considered this way, but it is sort of unhandy. |
# |
Jun 13th 2019, 13:07 |
awi |
Well I am trying to find out if something may be associated authorization-wise... |
# |
Jun 13th 2019, 13:06 |
inoas |
https://book.cakephp.org/3.0/en/orm/associations.html#using-the-through-option |
# |
Jun 13th 2019, 13:06 |
office |
@conehead I exported Cake DB and copied the code to local machine. I ran DB and changed settings in the database.php. Now there are two things i am not sure about - do i need to run `php composer.phar update` in the XAMPP Shell and how will i understand that it is ok? |
# |
Jun 13th 2019, 13:06 |
inoas |
and for the relationship use through |
# |
Jun 13th 2019, 13:06 |
inoas |
and use existsIn |
# |
Jun 13th 2019, 13:06 |
inoas |
awi my gut tells me: setup the join table as a real table class |
# |
Jun 13th 2019, 13:03 |
awi |
hi. just another question from me... Can I somehow pass the _ids provided for a belongsToMany association through buildRules? Or any other sort of Validation alike? |
# |
Jun 13th 2019, 12:43 |
inoas |
it seems that the initial form always and only builds on validationDefault() even if you specify another key in validates it also executes the default |
# |
Jun 13th 2019, 12:43 |
inoas |
so I want to setup another validationX method in my table for the default validation e.g. fetching if a field is required=>true etc |
# |
Jun 13th 2019, 12:23 |
stephenzgalbraith |
Anyone have anymore links or guides for implementing Elasticsearch? I tried for some hours last night to no avail between the book and GitHub readmes |
# |
Jun 13th 2019, 12:20 |
martin |
yes this is the same problem :P |
# |
Jun 13th 2019, 12:19 |
dereuromark |
as I do with enums ;) yeah |
# |
Jun 13th 2019, 12:19 |
martin |
and I can also use it always in the view |
# |
Jun 13th 2019, 12:19 |
martin |
hmm there you have a good point :) |
# |
Jun 13th 2019, 12:17 |
dereuromark |
the other way around is not valid IMO |
# |
Jun 13th 2019, 12:17 |
dereuromark |
why isnt it inside the entity in the first place? Then tables can use it by asking for it on the entity |
# |
Jun 13th 2019, 12:16 |
martin |
I have an array inside a table object, now I want that to use that array in the entity. can I reach that array somehow? |
# |
Jun 13th 2019, 11:26 |
admad |
@neon1024 I hope ICC is enjoying the revenue loss |
# |
Jun 13th 2019, 11:19 |
np |
@admad>> https://stackoverflow.com/questions/56578821/cakephp-3-5-18-jwt-authentication-fails |
# |
Jun 13th 2019, 10:18 |
neon1024 |
@admad :flag-in: v :flag-nz: :umbrella_with_rain_drops: :cricket_bat_and_ball: :,( |
# |
Jun 13th 2019, 09:53 |
conehead |
Short version: Through data is trying to create duplicate unique keys and I do not know why |
# |
Jun 13th 2019, 09:48 |
conehead |
Hm mark maybe you have a minute to have a look at this. Somehow I cannot get this working with my through association. I created an issue (but just noticed it is working with your tag plugin and closed it again) https://github.com/cakephp/cakephp/issues/13344 |
# |
Jun 13th 2019, 09:46 |
dereuromark |
See queue plugin how it does it |
# |
Jun 13th 2019, 09:39 |
yamcomnet |
maybe just use Symphonys one? https://symfony.com/doc/current/components/process.html |
# |
Jun 13th 2019, 09:25 |
yamcomnet |
is it just exec() inside console command? |
# |
Jun 13th 2019, 09:25 |
yamcomnet |
still not sure howto run system commands from cake? |
# |
Jun 13th 2019, 09:03 |
conehead |
https://book.cakephp.org/2.0/en/development/configuration.html |
# |
Jun 13th 2019, 09:02 |
conehead |
probably `database.php` |
# |
Jun 13th 2019, 09:02 |
office |
by config files you mean paths.php? |