title: Octobercms relation [1,3,4,5] query in frontend model
body: <p>i have model <strong>Gallery</strong> with relation ( builder plugin )</p>
  <pre><code>/* Relations */
  
   public $hasMany = [
  
      'category_name' =&gt; [
                          'aapaaa\webcontent\models\Category',
                          'table' =&gt; 'aapa_webcontent_category',
                          'key' =&gt; 'id',
                          'otherKey' =&gt; 'activity'
              ]  
  
  ];
  </code></pre>
  <p>in the table in the filed <strong>activity</strong> ( protected $jsonable ) i have stored for example values <strong>[1,3,4,5]</strong> ( category's id )</p>
  <p>how can i filter records for example for values <strong>1 and 3</strong> ?</p>
  <pre><code>$records = Gallery::where( 'activity', [1,3]... ????
  
  
  
  
  
  DROP TABLE IF EXISTS `apaaaa_webcontent_gallery`;
  
  CREATE TABLE `apaaaa_webcontent_gallery` (
    `id` int(10) NOT NULL AUTO_INCREMENT,
    `title` varchar(191) NOT NULL,
    `slug` varchar(191) NOT NULL,
    `description` text DEFAULT NULL,
    `aktivity` text DEFAULT NULL,
    `enable` int(11) NOT NULL,
    `vaha` int(11) NOT NULL,
    `created_at` timestamp NULL DEFAULT NULL,
    `updated_at` timestamp NULL DEFAULT NULL,
    `deleted_at` timestamp NULL DEFAULT NULL,
    PRIMARY KEY (`id`)
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
  
  LOCK TABLES `apaaaa_webcontent_gallery` WRITE;
  /*!40000 ALTER TABLE `apaaaa_webcontent_gallery` DISABLE KEYS */;
  
  INSERT INTO `apaaaa_webcontent_gallery` (`id`, `title`, `slug`, `description`, `aktivity`, `enable`, `vaha`, `created_at`, `updated_at`, `deleted_at`)
  VALUES
      (14,'TARGET PICTURES PRODUCTION','target-pictures-production',NULL,'[2]',1,14,'2021-11-12 21:51:11','2021-11-12 21:51:11',NULL),
      (1256,'ARMADA FILMS','armada-films',NULL,'[2,3,5]',1,1256,'2021-11-12 21:51:11','2021-11-12 21:51:11',NULL),
      (1265,'DAWSON PRODUCTIONS','dawson-productions',NULL,'[1,2,3,5]',1,1265,'2021-11-12 21:51:11','2021-11-12 21:51:11',NULL),
      (1270,'GOLDEN DAWN','golden-dawn',NULL,'[1,3,5]',1,1270,'2021-11-12 21:51:11','2021-11-12 21:51:11',NULL),
      (1278,'LUXOR','luxor',NULL,'[1,2,3,5]',1,1278,'2021-11-12 21:51:11','2021-11-12 21:51:11',NULL);
  
  /*!40000 ALTER TABLE `apaaaa_webcontent_gallery` ENABLE KEYS */;
  UNLOCK TABLES;
  </code></pre>
  <p>thank you for your help</p>
  <p>Vasek</p>