Hi Marco, Embedded questions
On Feb 17, 2014 11:13 PM, "Marco Pivetta" <[email protected]> wrote: > > Hi Roy, > > All operations for generating mappings or generating schema from entities+mappings are based on: > - the active db connection (all tables in the db are considered) Does it care about tables which are not entities mapped to php classes? > - the configured metadata driver (all metadata are considered) > It's been a while since i've studied the file/namespace for the generated classes mapping "my" classes to the ORM implementation, and proxies. Would those namespace protected by my_projects\project_X? Cheers, Roy > So you would likely need to switch metadata driver and/or db connection in your own CLI tools built around the schema tools. > > Cheers, > > Marco Pivetta > > http://twitter.com/Ocramius > > http://ocramius.github.com/ > > > On 18 February 2014 07:50, Roy Epperson <[email protected]> wrote: >> >> I just starting to investigate how to separate PHP classes into namespaces with their own Doctrine ORM entity, proxy, and database generation. What I think I would like to do is a namespace (and directory structure) something like this: >> >> my_projects\project_1 >> my_projects\project_2 >> my_projects\project_3 >> my_projects\project_4 >> >> Where some of the namespaces have persistent data and others do not. I then would like to execute Doctrine commands like: >> >> prompt>php doctrine orm:generate-entities <a configuration file that selects project_1> >> prompt>php doctrine orm:generate-schema <a configuration file that selects project_4> >> >> >> >> Depending on the project or website I am implementing I may or may not use all of the projects and want to >> independently create and update each of them as I hate big flat project structures.... >> >> >> >> Can these be done, if so, pointers to appropriate docs would be appreciated. Is there a better way? >> >> Thanks in advance, >> Roy >> >> >> -- >> 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. -- 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.
