[Catalyst] Model Tutorial?

Matt S Trout dbix-class at trout.me.uk
Tue May 29 14:48:40 GMT 2007


On Tue, May 29, 2007 at 09:05:37AM -0400, Ryan Detzel wrote:
> The one thing I'm having a hard time with is understanding the whole model
> relationship setup. I'm used to writie SQL statements like
> "SELECT * FROM users, picture WHERE users.user_id=1 AND users.user_id =
> picture.user_id;" which I know is not the proper way but when I get into
> statements joining 3-4 tables it's easier to read that way. Anyways, setting
> up the has_a, has_many stuff in the DBIC files is a pain and I can't seem to
> do the joins I can with direct SQL statements, anyone have any good
> tutorials or advice on this?

Read the DBIx::Class manual and intro stuff and then if you're still stuck
post to the dbix-class list and we'll do our best to help you.

-- 
      Matt S Trout       Need help with your Catalyst or DBIx::Class project?
   Technical Director    Want a managed development or deployment platform?
 Shadowcat Systems Ltd.  Contact mst (at) shadowcatsystems.co.uk for a quote
http://chainsawblues.vox.com/             http://www.shadowcatsystems.co.uk/ 



More information about the Catalyst mailing list