File tree Expand file tree Collapse file tree 5 files changed +5
-5
lines changed Expand file tree Collapse file tree 5 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -148,7 +148,7 @@ protected function fetchAssoc()
148
148
protected function fetchObject (string $ className = 'stdClass ' )
149
149
{
150
150
if (is_subclass_of ($ className , Entity::class)) {
151
- return empty ($ data = $ this ->fetchAssoc ()) ? false : (new $ className ())->injectRawData ($ data );
151
+ return empty ($ data = $ this ->fetchAssoc ()) ? false : (new $ className ())->fromDatabase ($ data );
152
152
}
153
153
154
154
return $ this ->resultID ->fetch_object ($ className );
Original file line number Diff line number Diff line change @@ -103,7 +103,7 @@ protected function fetchObject(string $className = 'stdClass')
103
103
return $ row ;
104
104
}
105
105
if (is_subclass_of ($ className , Entity::class)) {
106
- return (new $ className ())->injectRawData ((array ) $ row );
106
+ return (new $ className ())->fromDatabase ((array ) $ row );
107
107
}
108
108
109
109
$ instance = new $ className ();
Original file line number Diff line number Diff line change @@ -114,7 +114,7 @@ protected function fetchAssoc()
114
114
protected function fetchObject (string $ className = 'stdClass ' )
115
115
{
116
116
if (is_subclass_of ($ className , Entity::class)) {
117
- return empty ($ data = $ this ->fetchAssoc ()) ? false : (new $ className ())->injectRawData ($ data );
117
+ return empty ($ data = $ this ->fetchAssoc ()) ? false : (new $ className ())->fromDatabase ($ data );
118
118
}
119
119
120
120
return pg_fetch_object ($ this ->resultID , null , $ className );
Original file line number Diff line number Diff line change @@ -154,7 +154,7 @@ protected function fetchAssoc()
154
154
protected function fetchObject (string $ className = 'stdClass ' )
155
155
{
156
156
if (is_subclass_of ($ className , Entity::class)) {
157
- return empty ($ data = $ this ->fetchAssoc ()) ? false : (new $ className ())->injectRawData ($ data );
157
+ return empty ($ data = $ this ->fetchAssoc ()) ? false : (new $ className ())->fromDatabase ($ data );
158
158
}
159
159
160
160
return sqlsrv_fetch_object ($ this ->resultID , $ className );
Original file line number Diff line number Diff line change @@ -142,7 +142,7 @@ protected function fetchObject(string $className = 'stdClass')
142
142
$ classObj = new $ className ();
143
143
144
144
if (is_subclass_of ($ className , Entity::class)) {
145
- return $ classObj ->injectRawData ($ row );
145
+ return $ classObj ->fromDatabase ($ row );
146
146
}
147
147
148
148
$ classSet = Closure::bind (function ($ key , $ value ) {
You can’t perform that action at this time.
0 commit comments