mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-21 01:25:55 +02:00
Split Part entity class into multiple traits.
The part class has become very big and clumsy, that way it should be easier to maintain this entity...
This commit is contained in:
parent
3ecbe19fd6
commit
f7c2f1032f
8 changed files with 1041 additions and 774 deletions
|
@ -34,6 +34,7 @@ namespace App\Entity\Parts;
|
|||
|
||||
use App\Entity\Base\DBElement;
|
||||
use App\Entity\Base\TimestampTrait;
|
||||
use App\Entity\Parts\PartTraits\InstockTrait;
|
||||
use App\Validator\Constraints\Selectable;
|
||||
use App\Validator\Constraints\ValidPartLot;
|
||||
use Doctrine\ORM\Mapping as ORM;
|
||||
|
@ -227,7 +228,7 @@ class PartLot extends DBElement
|
|||
|
||||
/**
|
||||
* Sets the part that is stored in this part lot.
|
||||
* @param Part $part
|
||||
* @param Part|InstockTrait $part
|
||||
* @return PartLot
|
||||
*/
|
||||
public function setPart(Part $part): PartLot
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue