Mapper/Module/Schema fixes thanks to new tests

This commit is contained in:
Dennis Eichhorn 2019-02-26 00:00:31 +01:00
parent 6bb125ec8b
commit c16b040988
4 changed files with 4 additions and 4 deletions

View File

@ -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;
}

View File

@ -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'],
];