You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Instead of these, Db\Query class can contain property Closure $callback (and withCallback() method) which will be called for each row from result.
The $callback will be specified in one place (Query) instead of many different realizations. And this will allow to use Query directly to get prepared result (without any data reader).
The text was updated successfully, but these errors were encountered:
QueryDataReader::createItem()
method should be removeddata-db/src/QueryDataReader.php
Lines 17 to 21 in 174652b
BatchQueryResult
already has propertyClosure $populateMethod
to prepare row resulthttps://github.com/yiisoft/db/blob/e380ae2ffb6f3a466e6f168fafa93548e50f0d8c/src/Query/BatchQueryResult.php#L109
Instead of these,
Db\Query
class can contain propertyClosure $callback
(andwithCallback()
method) which will be called for each row from result.The
$callback
will be specified in one place (Query
) instead of many different realizations. And this will allow to useQuery
directly to get prepared result (without any data reader).The text was updated successfully, but these errors were encountered: