Inverse references

15 views
Skip to first unread message

Tom Taylor

unread,
Jun 8, 2012, 6:27:49 AM6/8/12
to toystor...@googlegroups.com
Hello,

Firstly: ToyStore looks brilliant, and I'm looking forward to using it on a project.

I was wondering if there's support for inverse references? If you have an object X that contains a reference to object Y, can object Y reach object X through an inverse reference?

Many thanks,

Tom

John Nunemaker

unread,
Jun 8, 2012, 1:36:42 PM6/8/12
to toystor...@googlegroups.com
Glad you are liking it. I've been using it for a year or so and love it, but I wrote it. :)

Inverse references are not supported right now, without doing something on your own with the data store of your choice.

Since I use Mongo, I typically just create a small query layer on top that uses adapter.client (which is a Mongo::Collection instance and can query against secondary indexes).
Reply all
Reply to author
Forward
0 new messages