Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re^2: SQL Syntax error from recursive DBIx::Class populate

by Boldra (Deacon)
on Nov 23, 2016 at 10:41 UTC ( [id://1176403]=note: print w/replies, xml ) Need Help??


in reply to Re: SQL Syntax error from recursive DBIx::Class populate
in thread SQL Syntax error from recursive DBIx::Class populate

Thanks for your ideas Brian,

It looks like you're doing something quite different to what I intended. I need the foreign keys (film in scene and director in films) to make relationships, so they're not redundant. By providing the foreign keys explicitly, the relationships aren't inferred by their position in the hashref (which works with <3 levels), which would be fine, but I have to use the keys of the parent object, or the relationship doesn't exist.

By the way, the strange data and relationship names are inspired by the cascading-delete unit test for DBIC: t/cdbi/23-cascade.t.



- Boldra
  • Comment on Re^2: SQL Syntax error from recursive DBIx::Class populate

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1176403]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (8)
As of 2024-04-25 08:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found