mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-21 01:25:55 +02:00
Added database migration for new entities.
This commit is contained in:
parent
7826e3d2ad
commit
408d98c6e1
25 changed files with 246 additions and 99 deletions
|
@ -29,7 +29,7 @@
|
|||
|
||||
namespace App\DataTables;
|
||||
|
||||
use App\Entity\Part;
|
||||
use App\Entity\Parts\Part;
|
||||
use App\Services\EntityURLGenerator;
|
||||
use Doctrine\ORM\QueryBuilder;
|
||||
use Omines\DataTablesBundle\Adapter\Doctrine\ORM\SearchCriteriaProvider;
|
||||
|
@ -65,7 +65,7 @@ class PartsDataTable implements DataTableTypeInterface
|
|||
->add('category', TextColumn::class, ['field' => 'category.name', 'label' => 'category.label'])
|
||||
->add('instock', TextColumn::class, ['label' => 'instock.label_short'])
|
||||
->add('mininstock', TextColumn::class, ['label' => 'mininstock.label_short'])
|
||||
->add('storelocation', TextColumn::class, ['field' => 'storelocation.name', 'label' => 'storelocation.label'])
|
||||
//->add('storelocation', TextColumn::class, ['field' => 'storelocation.name', 'label' => 'storelocation.label'])
|
||||
->addOrderBy('name')
|
||||
->createAdapter(ORMAdapter::class, [
|
||||
'entity' => Part::class,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue