mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2026-02-28 04:19:35 +00:00
Assemblies einführen
This commit is contained in:
parent
e1418dfdc1
commit
6fa960df42
107 changed files with 14101 additions and 96 deletions
|
|
@ -154,4 +154,14 @@ class DBElementRepository extends EntityRepository
|
|||
$property->setAccessible(true);
|
||||
$property->setValue($element, $new_value);
|
||||
}
|
||||
|
||||
protected function save(AbstractDBElement $entity, bool $flush = true): void
|
||||
{
|
||||
$manager = $this->getEntityManager();
|
||||
$manager->persist($entity);
|
||||
|
||||
if ($flush) {
|
||||
$manager->flush();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue