Skip to content

v1.4.7

Compare
Choose a tag to compare
@luanfreitasdev luanfreitasdev released this 17 Nov 00:07

🛠️ Fixes

issues:

  • search problem when joining multiple tables #129
  • more issues with ambiguous columns when using join #111
  • fix action method on action #128
  • exporting with join sortable.

good practices with join

  1. SortField and primaryKey values:
    public string $sortField = 'dishes.id';
    public string $primaryKey = 'dishes.id';
  1. Method addColumns:
     ->addColumn('dishes.name', function (Dish $dish) {
           return $dish->name;
      })
  1. Method columns;
      Column::add()
          ->title(__('Name'))
          ->field('dishes.name')