On Fri, Sep 14, 2012 at 11:43 AM, Derek W <[email protected]> wrote:
> The problem is our database structure here. The 3 tables I need to
> use do not have any relationships set. There is no primary keys on
> these tables. I had to manually code the relationships between the
> tables because the create helper could not - obviously. Now that I'm
> getting to the point of trying to add functionality such as deleting,
> Catalyst seems to blow up because it requires primary key for such
> calls as action_for('delete').
>
I ran into something similar where I work. In the model code, I defined an
auto number field as the primary key. That makes DBIx::Class happy.
--
Robert Wohlfarth
_______________________________________________
List: [email protected]
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/[email protected]/
Dev site: http://dev.catalyst.perl.org/