mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-07-04 23:44:33 +02:00
Fixed some inspection issues.
This commit is contained in:
parent
8e23629dc0
commit
1629f31fed
31 changed files with 187 additions and 211 deletions
|
@ -33,7 +33,6 @@ namespace App\Entity\Parts;
|
|||
|
||||
|
||||
use App\Entity\Base\PartsContainingDBElement;
|
||||
use App\Entity\Base\StructuralDBElement;
|
||||
use Doctrine\ORM\Mapping as ORM;
|
||||
use Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntity;
|
||||
use Symfony\Component\Validator\Constraints as Assert;
|
||||
|
@ -127,7 +126,7 @@ class MeasurementUnit extends PartsContainingDBElement
|
|||
*/
|
||||
public function setIsInteger(bool $isInteger): MeasurementUnit
|
||||
{
|
||||
$this->isInteger = $isInteger;
|
||||
$this->is_integer = $isInteger;
|
||||
return $this;
|
||||
}
|
||||
|
||||
|
@ -145,7 +144,7 @@ class MeasurementUnit extends PartsContainingDBElement
|
|||
*/
|
||||
public function setUseSIPrefix(bool $usesSIPrefixes): MeasurementUnit
|
||||
{
|
||||
$this->useSIPrefixes = $usesSIPrefixes;
|
||||
$this->use_si_prefix = $usesSIPrefixes;
|
||||
return $this;
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue