Hi Gareth,
I have been struggling with generating models in separate directories
as well. We have a backend tool for 14 databases, each containing 50+
tables. Looking up a file in lib/model/doctrine is NOT fun :)
The 'package approach' you mentioned works,altough I only had to
define 'package: '
Possibly :-)
On Tue, Jan 25, 2011 at 11:26 AM, Gareth McCumskey wrote:
> This is probably because you are developing on a Windows system which
> doesn't follow OS conventions of using / for directory seperators and there
> was a bug that didn't properly translate that to \ for your system.
>
>
>
This is probably because you are developing on a Windows system which
doesn't follow OS conventions of using / for directory seperators and there
was a bug that didn't properly translate that to \ for your system.
On Tue, Jan 25, 2011 at 11:02 AM, Cornelius Parkin <
cornelius.par...@gmail.com> wro
Hi all
Just for interest sake, we have found a patch in symfony 1.4.8 which is
required to support multiple databases. It requires an alteration in the
config/ProjectConfiguration.class.php file and was quite a mission so I
thought to share this information as help for others whom may experience
t
Hi Gareth
Thanks a lot for your help thus far...
I have tried implementing your solution, but can not seem to succeed. I am
using doctrine and have been looking at Doctrine packages. When implementing
it as they say on
http://www.doctrine-project.org/projects/orm/1.2/docs/manual/yaml-schema-files
There is a symfony command to do exactly that: symfony doctrine:build-schema
1. Make a back up copy of your existing schema.yml (make it schema.yml.bak
or something)
2. Change databases.yml to point to your other database.
3. Run symfony doctrine:build-schema
4. Rename your new schema.yml to be da
Hi, thanks a lot Gareth
Do you know of a way to build the schema file i.e. database.schema.yml from
an existing database? I have a secondary database called accessdb and want
to run doctrine:build-schema that will populate the accessdb.schema.yml file
with the database structure.
Regards
CAP
On
A link I found with a little more detail:
http://itscommonsensestupid.blogspot.com/2009/04/how-to-configure-multiple-databases-for.html
On Mon, Jan 24, 2011 at 12:48 PM, Cornelius Parkin <
cornelius.par...@gmail.com> wrote:
> Hi Gareth, thanks so much... I am going to try it and let you know the
Hi Gareth, thanks so much... I am going to try it and let you know the
outcome :-)
Regards
CAP
On Mon, Jan 24, 2011 at 12:45 PM, Gareth McCumskey wrote:
> Yes you can.
>
> Create a second schema file and call it newschemname.schema.yml , changing
> newschemname to whatever you want. Inside this
Yes you can.
Create a second schema file and call it newschemname.schema.yml , changing
newschemname to whatever you want. Inside this new schema file add the
following the top:
new_database_name:
_attributes:
package: lib.model.subdirectory
This will store the model files for this schema
Hi, thanks, I will look into that, not sure if it will allow a subfolder
under lib/model/doctrine though? Can schema.yml e overridden in an
application?
Regards
CAP
On Mon, Jan 24, 2011 at 11:20 AM, Justen Doherty wrote:
> you could try creating a new application and tweak the schema.yml in you
you could try creating a new application and tweak the schema.yml in your
new app..
On Mon, Jan 24, 2011 at 9:12 AM, Cornelius Parkin <
cornelius.par...@gmail.com> wrote:
> Hi
>
> Anyone have any possible solutions regarding this? Have not had a response
> yet. Is it also possible to build a sepe
Hi
Anyone have any possible solutions regarding this? Have not had a response
yet. Is it also possible to build a seperate shema file from the default
schema.yml for the separate database and then build the models in a
different directory from that schema file?
Thanks in advance...
Regards
CAP
13 matches
Mail list logo