laravel-doctrine
laravel-doctrine copied to clipboard
Added support for Laravel Migrations & Reminders
Doctrine automatically updates the database schema to represent the entities in your application, thus rendering most of the use-cases for Laravel's migrations useless, however Laravel's migrations can still be useful for migrating other stuff, such as data stored on the filesystem.
What's Changed
This pull request adds support for Laravel migrations, using Doctrine for the DB interaction. It adds a new Entity: Migration
, that is automatically included into the metadata
config. It also adds a new implementation of MigrationRepositoryInterface
that uses Doctrine instead of Laravel's DB.
I've also added support for Laravel's password reminders.
Caveats:
- Switching connections doesn't work (perhaps you might know how to fix it?)
- The
Migration
entity cannot be removed (perhaps I should add a config option)
It'd be great to know what you think about this, and if it is a good fit for your package.
This is excellent. Will test it out when I get home.
I found a bug with the getRan() method. It should work better now.
I've added support for password reminders as well. Let me know if you'd prefer that in a seperate PR.
:+1:
There's some comments in some of the code that can be removed - and please write tests for the new features.
@neon64 ping!
I've been without stable internet for a couple of days but I'll try to get those fixes done asap.
What comments did you want removed? I could only find the // not implemented
one in DoctrineMigrationRepository
plus a bunch of docblocks, which I assume you want kept.
Sorry. I forgot to merge new changes from upstream. The tests are fine now
:+1: