'inpost_shipment_status', 'primary' => 'id_status', 'multilang' => true, 'fields' => [ 'name' => [ 'type' => self::TYPE_STRING, 'validate' => 'isTableOrIdentifier', 'size' => 64, ], 'title' => [ 'type' => self::TYPE_STRING, 'lang' => true, 'validate' => 'isGenericName', 'size' => 128, ], 'description' => [ 'type' => self::TYPE_STRING, 'lang' => true, 'validate' => 'isCleanHtml', 'size' => 512, ], ], ]; public static function getStatusByName($name) { $collection = (new PrestaShopCollection(self::class)) ->where('name', 'LIKE', $name); return $collection->getFirst(); } }