[Dbix-class] No such column

Matt S Trout dbix-class at trout.me.uk
Thu Sep 13 16:54:32 GMT 2007


On Thu, Sep 13, 2007 at 09:25:54AM -0600, Craig wrote:
> Hi Sebastian:
> I do have the set_primary_key call before the add_columns call. Should 
> it be the reverse?

You need to have told DBIC the column exists before you can set it as part of
the PK.

You'll find databases work the same way :)

-- 
      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.shadowcat.co.uk/ 



More information about the DBIx-Class mailing list