Support for relationship attributes in many_to_many accessors.
authorMichael Leuchtenburg <michael@slashhome.org>
Thu, 10 Aug 2006 18:22:05 +0000 (18:22 +0000)
committerMichael Leuchtenburg <michael@slashhome.org>
Thu, 10 Aug 2006 18:22:05 +0000 (18:22 +0000)
commit78060df8cb43cafd81304f386d7111510a4b8f9d
treeec6c1e7344fbd6c751a1f74e3366de9c4385124a
parent89d794d486e3c73b489817059e9c3983deebde7f
Support for relationship attributes in many_to_many accessors.
Merge new where condition, old where condition, cond in ResultSet::search_rs
Collapse cond in ResultSet::new_result so that it doesn't try to create columns with names like "-and".
Add a bunch of tests for the where condition things, which also happen to require the cond collapsing.
Create supporting classes and associated tables for these tests.
13 files changed:
.gitignore [new file with mode: 0644]
lib/DBIx/Class.pm
lib/DBIx/Class/Relationship/ManyToMany.pm
lib/DBIx/Class/ResultSet.pm
t/46where_attribute.t [new file with mode: 0644]
t/lib/DBICTest.pm
t/lib/DBICTest/Schema.pm
t/lib/DBICTest/Schema/BooksInLibrary.pm [new file with mode: 0644]
t/lib/DBICTest/Schema/Collection.pm [new file with mode: 0644]
t/lib/DBICTest/Schema/CollectionObject.pm [new file with mode: 0644]
t/lib/DBICTest/Schema/Owners.pm [new file with mode: 0644]
t/lib/DBICTest/Schema/TypedObject.pm [new file with mode: 0644]
t/lib/sqlite.sql