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 <
[email protected]> wrote:

> 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 
> <[email protected]>wrote:
>
>> 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 in
>> projectroot/lib/model/subdirectory when you run the model generator "symfony
>> doctrine:build-model"
>>
>> Have fun
>>
>> On Mon, Jan 24, 2011 at 11:12 AM, Cornelius Parkin <
>> [email protected]> wrote:
>>
>>> 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
>>>
>>> On Fri, Jan 21, 2011 at 1:18 PM, corneliusparkin <
>>> [email protected]> wrote:
>>>
>>>> Hi
>>>>
>>>> I would like to know if it is possible to create a new database in
>>>> Symfony and ask Symfony to create the models under a separate
>>>> directory. Currently all models are stored under lib/model/doctrine
>>>> when built, but I would like to be able to have Symfony create them
>>>> under lib/model/doctrine/subfolder for logistics purposes.
>>>>
>>>> We are creating a sync task which will basically collect data from a
>>>> legacy database "the one I am now trying to set up"  and import it
>>>> into the new database but the task has many data conversion and
>>>> mapping functions to perform.
>>>>
>>>> Thanks in advance...
>>>>
>>>> Regards
>>>> CAP
>>>
>>>
>>>
>>>
>>> --
>>> Warm Regards
>>>
>>> C.A.Parkin
>>>
>>> *~"When you innovate, you've got to be prepared for everyone telling you
>>> you're nuts" - Larry Ellison~*
>>>
>>>  --
>>> If you want to report a vulnerability issue on symfony, please send it to
>>> security at symfony-project.com
>>>
>>> You received this message because you are subscribed to the Google
>>> Groups "symfony users" group.
>>> To post to this group, send email to [email protected]
>>> To unsubscribe from this group, send email to
>>> [email protected]<symfony-users%[email protected]>
>>> For more options, visit this group at
>>> http://groups.google.com/group/symfony-users?hl=en
>>>
>>
>>
>>
>> --
>> Gareth McCumskey
>> http://garethmccumskey.blogspot.com
>> twitter: @garethmcc
>> identi.ca: @garethmcc
>>
>>  --
>> If you want to report a vulnerability issue on symfony, please send it to
>> security at symfony-project.com
>>
>> You received this message because you are subscribed to the Google
>> Groups "symfony users" group.
>> To post to this group, send email to [email protected]
>> To unsubscribe from this group, send email to
>> [email protected]<symfony-users%[email protected]>
>> For more options, visit this group at
>> http://groups.google.com/group/symfony-users?hl=en
>>
>
>
>
> --
> Warm Regards
>
> C.A.Parkin
>
> *~"When you innovate, you've got to be prepared for everyone telling you
> you're nuts" - Larry Ellison~*
>
> --
> If you want to report a vulnerability issue on symfony, please send it to
> security at symfony-project.com
>
> You received this message because you are subscribed to the Google
> Groups "symfony users" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]<symfony-users%[email protected]>
> For more options, visit this group at
> http://groups.google.com/group/symfony-users?hl=en
>



-- 
Gareth McCumskey
http://garethmccumskey.blogspot.com
twitter: @garethmcc
identi.ca: @garethmcc

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

You received this message because you are subscribed to the Google
Groups "symfony users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en

Reply via email to