I have just spent the best part of the last week wrestling with many_to_many configuration with DBIx in Catalyst.
My problem manifested it self as an error when calling $newApp->add_to_directory($directories);
DBIx seeming was unable to do the sensible thing and put the primary key from my apps table into the join table.
I also got errors like:
ManyToMany::__ANON__(): No such column
Now, after a week, I have discovered that if I update_or_insert my $newApp (which I made with $c->model('Proj::App')->new({}); first, then add_to_$rel works.
This wasn't obvious to me in the documentation, but hopefully you have stumgled across this post as you search for help with the same problem.
Setting up PostgreSQL 12 Beta 3 for Testing in Amazon RDS
-
One of the amazing things about the PostgreSQL community is launching
releases like clockwork. On 8/8/2019 the PostgreSQL community not only
launched the ...
5 years ago
No comments:
Post a Comment