// Add associations support in Collection

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@12135 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
rMalie
2012-01-04 14:08:19 +00:00
parent 55ec3997a2
commit a1534b9165
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(