@@ -44,7 +44,7 @@ public function _dump(Model $model)
44
44
if (substr ($ method , 0 , 10 ) == '_property_ ' )
45
45
{
46
46
$ key = substr ($ method , 10 );
47
- $ value = $ this ->$ key ;
47
+ $ value = $ this ->$ method () ;
48
48
$ output .= " " . \Automatorm \Orm \Dump::format ($ key , $ value , $ seen );
49
49
$ seen [$ key ] = true ;
50
50
}
@@ -61,7 +61,7 @@ public function _dump(Model $model)
61
61
$ output .= " <span><strong>1-1</strong></span> => \n" ;
62
62
if ($ schema ['one-to-one ' ]) foreach ($ schema ['one-to-one ' ] as $ key => $ contents )
63
63
{
64
- $ value = $ this ->$ key ;
64
+ $ value = $ this ->_data -> $ key ;
65
65
66
66
$ output .= " " . \Automatorm \Orm \Dump::format ($ key , $ value , $ seen );
67
67
$ seen [$ key ] = true ;
@@ -70,7 +70,7 @@ public function _dump(Model $model)
70
70
$ output .= " <span><strong>*-1</strong></span> => \n" ;
71
71
if ($ schema ['many-to-one ' ]) foreach ($ schema ['many-to-one ' ] as $ key => $ contents )
72
72
{
73
- $ value = $ this ->$ key ;
73
+ $ value = $ this ->_data -> $ key ;
74
74
75
75
$ output .= " " . \Automatorm \Orm \Dump::format ($ key , $ value , $ seen );
76
76
$ seen [$ key ] = true ;
@@ -79,7 +79,7 @@ public function _dump(Model $model)
79
79
$ output .= " <span><strong>1-*</strong></span> => \n" ;
80
80
if ($ schema ['one-to-many ' ]) foreach ($ schema ['one-to-many ' ] as $ key => $ contents )
81
81
{
82
- $ value = $ this ->$ key ;
82
+ $ value = $ this ->_data -> $ key ;
83
83
84
84
$ output .= " " . \Automatorm \Orm \Dump::format ($ key , $ value , $ seen );
85
85
$ seen [$ key ] = true ;
@@ -88,7 +88,7 @@ public function _dump(Model $model)
88
88
$ output .= " <span><strong>*-*</strong></span> => \n" ;
89
89
if ($ schema ['many-to-many ' ]) foreach ($ schema ['many-to-many ' ] as $ key => $ contents )
90
90
{
91
- $ value = $ this ->$ key ;
91
+ $ value = $ this ->_data -> $ key ;
92
92
93
93
$ output .= " " . \Automatorm \Orm \Dump::format ($ key , $ value , $ seen );
94
94
$ seen [$ key ] = true ;
0 commit comments