hasOne version 1
This works fine, except that it repeats a lot of code
Copy this code and paste it in your HTML
class Call extends AppModel {
var $name = 'Call';
"base_region"=> array("className"=>"Region", "foreignKey"=>"id",
"column"=>"id"),
"region_1"=> array("className"=>"Region", "foreignKey"=>"id",
"column"=>"id")
);
}
Report this snippet
Comments
Subscribe to comments