in reply to Pseudo-Polymorphism
If the comments all have the same structure, why store them in different tables? Create a comments table and link that to each of the other four tables somehow. (I suspect you need a linking table to make the one-to-many relationship work, but that's pretty standard.)
Then all you need to do is use a templating system that allows you to use fragments or components and define a comment component and reuse that in your other templates.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Pseudo-Polymorphism
by Spidy (Chaplain) on Sep 09, 2006 at 17:23 UTC | |
by ikegami (Patriarch) on Sep 09, 2006 at 18:37 UTC | |
by jasonk (Parson) on Sep 10, 2006 at 02:22 UTC |