mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-21 01:25:55 +02:00
Added validator for the isFull/onlyExisting/singlePart options of locations.
This commit is contained in:
parent
cd2534335a
commit
b62b0918d7
3 changed files with 158 additions and 0 deletions
|
@ -35,6 +35,7 @@ namespace App\Entity\Parts;
|
|||
use App\Entity\Base\DBElement;
|
||||
use App\Entity\Base\TimestampTrait;
|
||||
use App\Validator\Constraints\Selectable;
|
||||
use App\Validator\Constraints\ValidPartLot;
|
||||
use Doctrine\ORM\Mapping as ORM;
|
||||
use Symfony\Component\Validator\Constraints as Assert;
|
||||
|
||||
|
@ -45,6 +46,7 @@ use Symfony\Component\Validator\Constraints as Assert;
|
|||
* @ORM\Entity()
|
||||
* @ORM\Table(name="part_lots")
|
||||
* @ORM\HasLifecycleCallbacks()
|
||||
* @ValidPartLot()
|
||||
*/
|
||||
class PartLot extends DBElement
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue