title: Override not working on prestashop 1.7 Category class
body: <p>Why is prestashop don't save my modification into database? 
  I've done an override on the Category.php (prestashop 1.7) class file, here is my code:</p>
  
  <p>/override/classes/Category.php</p>
  
  <p>class Category extends CategoryCore
  {
      /**
      * afficher/masquer les produits
      */
      public $show_products = 1;
      public $andrana;</p>
  
  <pre><code>public function __construct($idCategory = null, $idLang = null, $idShop = null)
  {
      $definition = self::$definition;
  
      $definition['fields']['show_products'] = array('type' =&gt; self::TYPE_BOOL, 'validate' =&gt; 'isBool', 'required' =&gt; true);
      $definition['fields']['andrana'] = array(
          'type' =&gt; self::TYPE_HTML,
          'lang' =&gt; true,
          'validate' =&gt; 'isCleanHtml'
      );
      parent::__construct($idCategory, $idLang, $idShop);
  }
  </code></pre>
  
  <p>}</p>
  
  <p>/override\controllers\admin\AdminCategoriesController.php</p>
  
  <p>class AdminCategoriesController extends AdminCategoriesControllerCore
  {</p>
  
  <pre><code>public function renderForm()
  {
      $this-&gt;fields_form_override = array(
          array(
              'type' =&gt; 'switch',
              'label' =&gt; $this-&gt;trans('Afficher les produits', array(), 'Admin.Global'),
              'name' =&gt; 'show_products',
              'required' =&gt; false,
              'is_bool' =&gt; true,
              'values' =&gt; array(
                  array(
                      'id' =&gt; 'active_on',
                      'value' =&gt; 1,
                      'label' =&gt; $this-&gt;trans('Enabled', array(), 'Admin.Global')
                  ),
                  array(
                      'id' =&gt; 'active_off',
                      'value' =&gt; 0,
                      'label' =&gt; $this-&gt;trans('Disabled', array(), 'Admin.Global')
                  )
              )
          ),
          array(
              'type' =&gt; 'textarea',
              'label' =&gt; $this-&gt;trans('Andrana', array(), 'Admin.Global'),
              'name' =&gt; 'andrana',
              'autoload_rte' =&gt; true,
              'lang' =&gt; true,
              'hint' =&gt; $this-&gt;trans('Invalid characters:', array(), 'Admin.Notifications.Info').' &lt;&gt;;=#{}'
          ),
      );
      return parent::renderForm();
  }
  </code></pre>
  
  <p>}</p>
  
  <p>PS: I've added "show_products" on ps_category table and "andrana" in ps_category_lang table</p>
  
  <p>Please help me :(</p>