mirror of
https://github.com/Karaka-Management/oms-ClientManagement.git
synced 2026-02-14 15:58:42 +00:00
Mapper/Module/Schema fixes thanks to new tests
This commit is contained in:
parent
1102b0b993
commit
8629f0155e
|
|
@ -29,9 +29,9 @@ class Client
|
||||||
{
|
{
|
||||||
private $id = 0;
|
private $id = 0;
|
||||||
|
|
||||||
private $number = 0;
|
private $number = '';
|
||||||
|
|
||||||
private $numberReverse = 0;
|
private $numberReverse = '';
|
||||||
|
|
||||||
private $status = 0;
|
private $status = 0;
|
||||||
|
|
||||||
|
|
@ -51,7 +51,7 @@ class Client
|
||||||
|
|
||||||
private $address = [];
|
private $address = [];
|
||||||
|
|
||||||
public function __construct(int $id = 0)
|
public function __construct()
|
||||||
{
|
{
|
||||||
$this->createdAt = new \DateTime('now');
|
$this->createdAt = new \DateTime('now');
|
||||||
$this->profile = new Profile();
|
$this->profile = new Profile();
|
||||||
|
|
@ -62,12 +62,12 @@ class Client
|
||||||
return $this->id;
|
return $this->id;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getNumber() : int
|
public function getNumber() : string
|
||||||
{
|
{
|
||||||
return $this->number;
|
return $this->number;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function setNumber(int $number) : void
|
public function setNumber(string $number) : void
|
||||||
{
|
{
|
||||||
$this->number = $number;
|
$this->number = $number;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -30,7 +30,7 @@ final class ClientMapper extends DataMapperAbstract
|
||||||
*/
|
*/
|
||||||
protected static $columns = [
|
protected static $columns = [
|
||||||
'clientmgmt_client_id' => ['name' => 'clientmgmt_client_id', 'type' => 'int', 'internal' => 'id'],
|
'clientmgmt_client_id' => ['name' => 'clientmgmt_client_id', 'type' => 'int', 'internal' => 'id'],
|
||||||
'clientmgmt_client_no' => ['name' => 'clientmgmt_client_no', 'type' => 'int', 'internal' => 'number'],
|
'clientmgmt_client_no' => ['name' => 'clientmgmt_client_no', 'type' => 'string', 'internal' => 'number'],
|
||||||
'clientmgmt_client_no_reverse' => ['name' => 'clientmgmt_client_no_reverse', 'type' => 'string', 'internal' => 'numberReverse'],
|
'clientmgmt_client_no_reverse' => ['name' => 'clientmgmt_client_no_reverse', 'type' => 'string', 'internal' => 'numberReverse'],
|
||||||
'clientmgmt_client_status' => ['name' => 'clientmgmt_client_status', 'type' => 'int', 'internal' => 'status'],
|
'clientmgmt_client_status' => ['name' => 'clientmgmt_client_status', 'type' => 'int', 'internal' => 'status'],
|
||||||
'clientmgmt_client_type' => ['name' => 'clientmgmt_client_type', 'type' => 'int', 'internal' => 'type'],
|
'clientmgmt_client_type' => ['name' => 'clientmgmt_client_type', 'type' => 'int', 'internal' => 'type'],
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user