[symfony-users] Re: schema design

2009-10-16 Thread mbernasocchi
Thanks a lot, I looked into behaviours, they do look interesting indeed, but I'd like to have all the abuse information in one table. so I followed your advice and replaced enum with string(20) cheers Marco On Oct 3, 12:52 am, Gareth McCumskey gmccums...@gmail.com wrote: Your first solution is

[symfony-users] Re: schema design

2009-10-02 Thread david
Consider writing a behavior - which you can then attach to whatever tables you wish. Checkout: http://www.doctrine-project.org/documentation/manual/1_1/en/behaviors On Fri, 02 Oct 2009 16:11:23 +0200, mbernasocchi mbernasoc...@gmail.com wrote: Hi I've a question regarding how to

[symfony-users] Re: schema design

2009-10-02 Thread Gareth McCumskey
Your first solution is nice and simple but it has one big flaw. Because you use enum if you want to add another type later that means you now have to edit database schema to accomplish it. One tactic which might work better is instead of enum'ing a few types just use the table name as the type

[symfony-users] Re: schema design

2009-10-02 Thread Eno
On Fri, 2 Oct 2009, david wrote: Consider writing a behavior - which you can then attach to whatever tables you wish. Checkout: http://www.doctrine-project.org/documentation/manual/1_1/en/behaviors +1 -- --~--~-~--~~~---~--~~ You received this