SchizoDuckie / CreateReadUpdateDelete.js

CreateReadUpdateDelete.js aims to bring you a tiny footprint (18kb compressed), platform independent ORM/ActiveRecord implementation for Javascript that works flawlessly on SQLite / WebSQL databases, or any flavor of remote database you can think of via serverside JSON API. Written in Plain Old JavaScript without any framework dependencies, you can use this with Mootools, Jquery, Zepto, Ember, or whatever your drug of choice is.
http://schizoduckie.github.io/CreateReadUpdateDelete.js/
MIT License
38 stars 5 forks source link

set extra attributes on connector table #1

Open jsierles opened 9 years ago

jsierles commented 9 years ago

Is there a way to set and retrieve additional attributes on a join/connector table?

SchizoDuckie commented 9 years ago

Sorry, i've somehow completely missed you opening this issue!

I've recently patched some things and am releasing a new version soon. I will make sure the getConnector() function that I have in the PHP equvalent of this project works here as well!

You basically call it on any side of a many:many relationship entity and it will return you a promise that returns an instance of the join table entity.