mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-24 02:38:50 +02:00
Renamed devices table to projects to have the same name as the entities.
This commit is contained in:
parent
fb0c604edd
commit
79db46b8e6
4 changed files with 82 additions and 50 deletions
|
@ -37,7 +37,7 @@ use Symfony\Component\Validator\Context\ExecutionContextInterface;
|
|||
* Class AttachmentType.
|
||||
*
|
||||
* @ORM\Entity(repositoryClass="App\Repository\Parts\DeviceRepository")
|
||||
* @ORM\Table(name="devices")
|
||||
* @ORM\Table(name="projects")
|
||||
*/
|
||||
class Project extends AbstractStructuralDBElement
|
||||
{
|
||||
|
|
|
@ -37,7 +37,7 @@ use Symfony\Component\Validator\Context\ExecutionContextInterface;
|
|||
/**
|
||||
* The ProjectBOMEntry class represents a entry in a project's BOM.
|
||||
*
|
||||
* @ORM\Table("device_parts")
|
||||
* @ORM\Table("project_bom_entries")
|
||||
* @ORM\HasLifecycleCallbacks()
|
||||
* @ORM\Entity()
|
||||
* @UniqueEntity(fields={"part", "project"}, message="project.bom_entry.part_already_in_bom")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue