septentrio Posted May 15, 2013 Share Posted May 15, 2013 Bonjour, Ecusez-moi pour cette question, je suis un noob Si on met Product::$definition['fields']['ma_variable'] = array('type' => self::TYPE_STRING, 'lang' => true, 'validate' => 'isUnsignedId'); Est-ce que l'association 'lang'=> true signifie que la variable sera stockée dans la table ps_products_lang ? Merci Link to comment Share on other sites More sharing options...
be_tnt Posted May 16, 2013 Share Posted May 16, 2013 Effectivement, si dans la variable definitions, tu ajoutes une variable avec lang=true sera stockée dans la table :prefix_tablename_lang. Bien sûr, la colonne doit exister dans ladite table. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now