Re: Fat models - design question, where to put logic?

2009-10-27 Thread Marcelo Andrade
On Mon, Oct 26, 2009 at 10:30 AM, red mbu...@gmail.com wrote: Hi, I've design question, where to put the code for situations like this: 1. Shop - hasMany - Categories 2. Categories are TreeBehavior 3. For every Shop I put new root Category, so it look like: - Root Category for Shop #1

Fat models - design question, where to put logic?

2009-10-26 Thread red
Hi, I've design question, where to put the code for situations like this: 1. Shop - hasMany - Categories 2. Categories are TreeBehavior 3. For every Shop I put new root Category, so it look like: - Root Category for Shop #1 --- Category 1 --- Category 2 - Root Category for Shop #2 --- Category 1