Is there a way to add properties to the relational entities which are created with hasMany?
e.g : I have tables - User & Car:
var User = persistence.define('User', {
Name: 'TEXT'
});
var Car = persistence.define('Car', {
Name: 'TEXT'
});
And then create the many-to-many relational table:
Car.hasMany('users', User, 'cars');
User.hasMany('cars', Car, 'users');
So, the question is - how do I add a property to the relational table created by Persistence?
hasMany does not return anything.
I'd like to add a date property to know when I created the car-user association. If not possible via Persistence, how is this accomplished w/ it ?
--
You received this message because you are subscribed to the Google Groups "persistence.js" group.
To unsubscribe from this group and stop receiving emails from it, send an email to persistencej...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.