taylorotwell/eloquent — Issue #16: Access relationship properties
Author: curana
Created: 2012-02-27 10:23:27+00:00
State: open

Today it seems not possible to access relationship properties.

Let's assume I have two objects: book and person. Here I have a one-to-many relationship. One book can have several persons. Now I would like to classify the relationship saying that the book belongs to person A which identifies person A as the author. I have a second relationship which identifies the second person as the publisher etc.

I would like to extend the relationship table (ID, author_id, book_id) by a property lets say "type" (ID, author_id, book_id, type). CodeIgniters DataMapper-Library has a feature called "join Fields" which reflect this requirement: http://datamapper.wanwizard.eu/pages/joinfields.html