mirror of
https://github.com/Karaka-Management/oms-ClientManagement.git
synced 2026-02-11 22:38:42 +00:00
Use global namespace+minor fixes
This commit is contained in:
parent
3491fd57bc
commit
e1ddb994a1
|
|
@ -79,7 +79,7 @@ class Client
|
||||||
|
|
||||||
public function setReverseNumber($rev_no) : void
|
public function setReverseNumber($rev_no) : void
|
||||||
{
|
{
|
||||||
if (!is_scalar($rev_no)) {
|
if (!\is_scalar($rev_no)) {
|
||||||
throw new \Exception();
|
throw new \Exception();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -75,8 +75,12 @@ final class ClientMapper extends DataMapperAbstract
|
||||||
'mapper' => ProfileMapper::class,
|
'mapper' => ProfileMapper::class,
|
||||||
'src' => 'clientmgmt_client_account',
|
'src' => 'clientmgmt_client_account',
|
||||||
],
|
],
|
||||||
];
|
]; /**
|
||||||
|
* Has many relation.
|
||||||
|
*
|
||||||
|
* @var array<string, array<string, string>>
|
||||||
|
* @since 1.0.0
|
||||||
|
*/
|
||||||
protected static $hasMany = [
|
protected static $hasMany = [
|
||||||
'files' => [
|
'files' => [
|
||||||
'mapper' => MediaMapper::class, /* mapper of the related object */
|
'mapper' => MediaMapper::class, /* mapper of the related object */
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user