mirror of
https://github.com/Karaka-Management/oms-Organization.git
synced 2026-02-03 18:28:39 +00:00
Fixing json serialization and reporter
This commit is contained in:
parent
4ae2510846
commit
2599e9adfb
|
|
@ -104,7 +104,7 @@ class Department
|
|||
*/
|
||||
public function __toString()
|
||||
{
|
||||
return $this->jsonSerialize();
|
||||
return json_encode($this->toArray());
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -117,6 +117,6 @@ class Department
|
|||
*/
|
||||
public function jsonSerialize()
|
||||
{
|
||||
return json_encode($this->toArray());
|
||||
return $this->toArray();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -93,7 +93,7 @@ class Position implements ArrayableInterface, \JsonSerializable
|
|||
*/
|
||||
public function __toString()
|
||||
{
|
||||
return $this->jsonSerialize();
|
||||
return json_encode($this->toArray());
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -106,6 +106,6 @@ class Position implements ArrayableInterface, \JsonSerializable
|
|||
*/
|
||||
public function jsonSerialize()
|
||||
{
|
||||
return json_encode($this->toArray());
|
||||
return $this->toArray();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -93,7 +93,7 @@ class Unit implements ArrayableInterface, \JsonSerializable
|
|||
*/
|
||||
public function __toString()
|
||||
{
|
||||
return $this->jsonSerialize();
|
||||
return json_encode($this->toArray());
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -106,6 +106,6 @@ class Unit implements ArrayableInterface, \JsonSerializable
|
|||
*/
|
||||
public function jsonSerialize()
|
||||
{
|
||||
return json_encode($this->toArray());
|
||||
return $this->toArray();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user