# |
Jun 13th 2019, 14:41 |
swimboy |
And thanks, using 4.x-dev worked perfectly. |
# |
Jun 13th 2019, 14:40 |
swimboy |
I have an app that I’ve built in 3.7, and have a short-term need for a small subset of it as a separate app. I figured it would be a good test-case for the alpha release. |
# |
Jun 13th 2019, 14:39 |
neon1024 |
I should upgrade my test app to alpha2 also! Good reminder |
# |
Jun 13th 2019, 14:39 |
neon1024 |
But as you say we’ve no idea what @swimboy is trying out! Good job testing the alphas though :thumbsup: |
# |
Jun 13th 2019, 14:38 |
neon1024 |
I prefer it for testing the release as it’s a fixed point for the core team to work from, whereas a commit hash can be a little more frustrating I think |
# |
Jun 13th 2019, 14:38 |
dereuromark |
if its just about testing things this would be fine |
# |
Jun 13th 2019, 14:38 |
neon1024 |
https://semver.mwl.be/#?package=cakephp%2Fcakephpandversion=4.0.0-alpha2andminimum-stability=alpha |
# |
Jun 13th 2019, 14:38 |
dereuromark |
you could also just use 4.x-dev :slightly_smiling_face: I do that |
# |
Jun 13th 2019, 14:36 |
neon1024 |
Don’t you need to specify special releases exactly? |
# |
Jun 13th 2019, 14:33 |
swimboy |
Is there a reason that I can install 4.0.0-alpha1 via composer, but not alpha2? I used the command `composer create-project --prefer-dist cakephp/app:4.0.0-alpha1 myproject`. And even `composer update` won’t pick up alpha2 from an installation of alpha1. |
# |
Jun 13th 2019, 14:29 |
ricksaccous |
what lars said |
# |
Jun 13th 2019, 14:29 |
ricksaccous |
yeah |
# |
Jun 13th 2019, 14:28 |
ricksaccous |
you need the NameOfMigration |
# |
Jun 13th 2019, 14:28 |
lars.ebert |
If it is empty or contains no commands, then something went wrong when creating the migration. |
# |
Jun 13th 2019, 14:28 |
ricksaccous |
to the bin/cake bake migration_snapshot NAmeOfMigration |
# |
Jun 13th 2019, 14:28 |
lars.ebert |
@noel Take a look into the config/migrations folder. There you should see a file for your migration snapshot. If you open that file, you should see the migration that `bake` created for you. |
# |
Jun 13th 2019, 14:28 |
ricksaccous |
are you sure the migration was even created in the first place because you are supposed to add an argument |
# |
Jun 13th 2019, 14:26 |
ricksaccous |
seems your snapshot wasn't that good then i suppose |
# |
Jun 13th 2019, 14:26 |
ricksaccous |
when he tried to run the migration again |
# |
Jun 13th 2019, 14:26 |
ricksaccous |
if he deleted the whole db it should have worked |
# |
Jun 13th 2019, 14:22 |
dereuromark |
use "migrations status" to check for details on each step |
# |
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 |