Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix MigrationHelper.php throwing Exception #639

Merged
merged 1 commit into from
Sep 22, 2023
Merged

Conversation

harikt
Copy link
Contributor

@harikt harikt commented Sep 21, 2023

I noticed sometimes it is usingCake\Database\Schema\CachedCollection and not Cake\Database\Schema\Collection.

This is what I tried.

bin/cake bake migration_snapshot Initial

Which was throwing exception as in screenshot given below .

image

I noticed sometimes it is using`CachedCollection` and not `Collection`.

This is what I tried.

```
bin/cake bake migration_snapshot Initial
```

Which was throwing exception at line 159.
@harikt harikt changed the title Update MigrationHelper.php Fix MigrationHelper.php throwing Exception Sep 21, 2023
@markstory markstory added this to the 4.x (CakePHP 5) milestone Sep 22, 2023
@markstory markstory merged commit 7bde5c1 into cakephp:4.x Sep 22, 2023
@markstory
Copy link
Member

Thank you 🎉

@harikt harikt deleted the patch-1 branch September 23, 2023 07:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants