With doctrine I'm pretty sure you can do this fairly easily with a  
behaviour and listeners.
Here's the reference:  
http://www.doctrine-project.org/documentation/manual/1_1/en/event-listeners#introduction

You'd then be able to work via the yml for your models.
Something like setting a default for the doctrine schema and then  
attaching specific models to an alternate schema.

On Wed, 30 Sep 2009 19:31:26 +0200, Fábio Coelho <[email protected]> wrote:

> Hi Lucas,
>
> That is the point, symfony can deal with schemas using this workaround,  
> but
> needs changes in the code for each db update, and no mention here about
> cross schema foreign keys. I don't want to start a project that needs a  
> lot
> of adjustment, if I can automatize all of this, adjusting symfony.
>
> 2009/9/30 Lucas Stephanou <[email protected]>
>
>>
>> Fabio,
>>
>> if you are using doctrine, just use the method
>> setTableName('schema.table') and you will be fine
>>
>> 2009/9/30 Fábio Coelho <[email protected]>:
>> > Alexandre and Pascal,
>> >
>> > I think I was misunderstood. I'm talking about SQL schemas and not  
>> about
>> > symfony schemas, that are complete diferent things. And as I think  
>> that
>> > Symfony does not  support this SQL feature, I'm thinking about  
>> working in
>> > symfony's code, so, I m doing some research with the developers to
>> discover
>> > if there are any code dealing with this, or I'll need to start from  
>> the
>> > ground.
>> >
>> > Best Regards,
>> >
>> > Fábio Coelho
>> >
>> > 2009/9/30 [MA]Pascal <[email protected]>
>> >>
>> >> Fábio,
>> >>
>> >> Please ask these kind of question on the symfony-users mailing list
>> >> (http://groups.google.com/group/symfony-users).
>> >>
>> >> This list is for the development of the symfony framework itself
>> >> rather than
>> >> general questions about using symfony.
>> >>
>> >> Regards,
>> >> [MA]Pascal
>> >>
>> >> On 29 sep, 17:46, qoelheXXX <[email protected]> wrote:
>> >> > Hi there,
>> >> >
>> >> > I'm a very experienced PHP programmer and I'm trying symfony to  
>> make a
>> >> > new App, but I use one databases with a lot of  schemas and  
>> stucked at
>> >> > this point. Now I'm researching to find the best way to address  
>> this
>> >> > issue in symfony, since I didn't find any mention in any  
>> documentation
>> >> > about database schema support on Symphony.
>> >> >
>> >> > Is there any intention in develop such support in the future? Or
>> >> > better, maybe the symfony approach is not so  attached to the  
>> absence
>> >> > of the concept of schemas and I can try to dig in the code and make
>> >> > some changes?
>> >> >
>> >> > Any insigth will be very wellcome!
>> >> >
>> >> > Best Regards,
>> >> >
>> >> > Fábio Coelho
>> >>
>> >
>> >
>> >
>> > --
>> > by qoelheXXX
>> >
>> > >
>> >
>>
>>
>>
>> --
>> - lucas
>>
>> >
>>
>
>


-- 
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"symfony developers" 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-devs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to