I\'m trying sails.js association using one way reference (according to sails.js in action book). Now, the value of owner is su
It will not be inserted because its 'virtual' data. When you want to get those data you need to join those 2 tables.
Driver.find({
}).populate('cars').exec(function(error, drivers){
});
Query sent to database will look more like this
select * from driver inner join car where driver.id = car.owner