Reputation: 59
I have one CompanyConroller connect with companies table.
how can i get companies table value via calling from SubadminController?
Upvotes: 1
Views: 247
Reputation: 448
You can get companies table value by calling SubadminController by giving this relation in Subadmin model
var $belongsTo = array("Company");
or
var $hasMany = array("Company");
Upvotes: 1