|
|
@@ -1303,7 +1303,12 @@ trait EntityTrait
|
|
|
*/
|
|
|
public function __debugInfo()
|
|
|
{
|
|
|
- return $this->_properties + [
|
|
|
+ $properties = $this->_properties;
|
|
|
+ foreach ($this->_virtual as $field) {
|
|
|
+ $properties[$field] = $this->$field;
|
|
|
+ }
|
|
|
+
|
|
|
+ return $properties + [
|
|
|
'[new]' => $this->isNew(),
|
|
|
'[accessible]' => $this->_accessible,
|
|
|
'[dirty]' => $this->_dirty,
|