Skip to content
This repository has been archived by the owner on May 14, 2018. It is now read-only.

Create database schema with Doctrine #17

Closed
pensiero opened this issue Jul 22, 2012 · 7 comments
Closed

Create database schema with Doctrine #17

pensiero opened this issue Jul 22, 2012 · 7 comments

Comments

@pensiero
Copy link
Contributor

usually i do
./vendor/bin/doctrine-module orm:schema-tool:update --force
for updating the db with the specified entities of my module, but after installing BjyAuthorize and running that command, nothing was edited in the database.

@bjyoungblood
Copy link
Owner

I don't personally know/use Doctrine, but I gladly accept pull requests for fixes. I believe @Ocramius said he was going to take a closer look at Doctrine integration.

@pensiero
Copy link
Contributor Author

@Ocramius
Copy link
Contributor

@gamempire yes, it is possible to achieve that by adding mappings for the role entity (xml/yaml/php, your choice). I'm not sure how to achieve that without coupling BjyAuthorize to Doctrine though.
Ideally, I would just have ZfcUserDoctrineORM to be coupled to DoctrineModule only (therefore removing the "ORM" part in the module name), and am still thinking about how to achieve that too.

@Ocramius
Copy link
Contributor

@gamempire that part is just a raw SQL query, while it should eventually use DQL or an ObjectRepository (better)

@pensiero
Copy link
Contributor Author

I don't know what i saying but, in ZfcUser, after enabling ZfcUserDoctrineORM and running orm:schema-tool:update --force
it create the tables for me.

@Ocramius
Copy link
Contributor

@gamempire that's exactly because the mappings are missing, but having BjyAuthorize register them would be assuming that BjyAuthorize depends on DoctrineModule...

@Hounddog
Copy link

Hounddog commented Sep 3, 2012

And if we just do the same for BjyAuthorize as in ZfcUser? i mean create BjyAuthorizeDoctrine

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants