10.01.2020, 12:48
Use direct db queries (db:update), there's no point in grp.create here. Don't forget to add `id` to SELECT fields.
If you only need to match beginning of the name you can omit the first %. You can also use one LIKE statement instead of two.
If you only need to match beginning of the name you can omit the first %. You can also use one LIKE statement instead of two.