// Add associations support in Collection

This commit is contained in:
rMalie
2012-01-04 14:08:19 +00:00
parent df1ef7b6d2
commit fcfbf438e8
2 changed files with 230 additions and 31 deletions
+4
View File
@@ -86,6 +86,10 @@ class CountryCore extends ObjectModel
// Lang fields
'name' => array('type' => self::TYPE_STRING, 'lang' => true, 'validate' => 'isGenericName', 'required' => true, 'size' => 64),
),
'associations' => array(
'zone' => array('type' => self::HAS_ONE),
'currency' => array('type' => self::HAS_ONE),
)
);
protected $webserviceParameters = array(