Yes, the schema can come from the entities directly (that's actually how
you are supposed to use doctrine 2 ORM).
You can just create a small "install" script that generates the database
through the schema tool.

Marco Pivetta

http://twitter.com/Ocramius

http://ocramius.github.com/


On 15 February 2014 03:00, Nima Sadjadi <[email protected]> wrote:

> First i was worry to set foreign key and indexes correctly but now i see
> this update tool does the job! :) so when mappings is finished i run update
> tool to set foreign/indices in database then re-generate entities (because
> the array things to define which fields as indices will be outdated in
> entities (i am using php metadrive). Then move my mappings to the new
> entities. Now when my end-user will create database by entities, they have
> an updated database from start. Does it make sense? Or i am wrong?
>
> --
> You received this message because you are subscribed to the Google Groups
> "doctrine-user" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/doctrine-user.
> For more options, visit https://groups.google.com/groups/opt_out.
>

-- 
You received this message because you are subscribed to the Google Groups 
"doctrine-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/doctrine-user.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to