Fixing scaffold to import the view vars from called controller.
Fixing the load on 'hasMany' relations to have the table name when querying with foreign keys.