mirror of
https://github.com/Karaka-Management/oms-ItemManagement.git
synced 2026-02-09 08:48:41 +00:00
Mapper/Module/Schema fixes thanks to new tests
This commit is contained in:
parent
6bb125ec8b
commit
c16b040988
|
|
@ -28,7 +28,7 @@ class Item
|
|||
{
|
||||
private $id = 0;
|
||||
|
||||
private $number = 0;
|
||||
private $number = '';
|
||||
|
||||
private $articleGroup = 0;
|
||||
|
||||
|
|
@ -71,12 +71,12 @@ class Item
|
|||
return $this->createdAt;
|
||||
}
|
||||
|
||||
public function getNumber() : int
|
||||
public function getNumber() : string
|
||||
{
|
||||
return $this->number;
|
||||
}
|
||||
|
||||
public function setNumber(int $number) : void
|
||||
public function setNumber(string $number) : void
|
||||
{
|
||||
$this->number = $number;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -27,7 +27,7 @@ final class ItemMapper extends DataMapperAbstract
|
|||
*/
|
||||
protected static $columns = [
|
||||
'itemmgmt_item_id' => ['name' => 'itemmgmt_item_id', 'type' => 'int', 'internal' => 'id'],
|
||||
'itemmgmt_item_no' => ['name' => 'itemmgmt_item_no', 'type' => 'int', 'internal' => 'number'],
|
||||
'itemmgmt_item_no' => ['name' => 'itemmgmt_item_no', 'type' => 'string', 'internal' => 'number'],
|
||||
'itemmgmt_item_segment' => ['name' => 'itemmgmt_item_segment', 'type' => 'int', 'internal' => 'segment'],
|
||||
'itemmgmt_item_info' => ['name' => 'itemmgmt_item_info', 'type' => 'string', 'internal' => 'info'],
|
||||
];
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user