1568. Class

1568.1. Zend\Db\ResultSet\HydratingResultSet

1568.1.1. Methods

1568.1.1.1. __construct

__construct()

Constructor

Parameters:
  • null|HydratorInterface
  • null|object

1568.1.1.2. setObjectPrototype

setObjectPrototype()

Set the row object prototype

Parameters:object
Throws ExceptionInvalidArgumentException:
 
Return type:ResultSet

1568.1.1.3. setHydrator

setHydrator()

Set the hydrator to use for each row object

Parameters:HydratorInterface
Return type:HydratingResultSet

1568.1.1.4. getHydrator

getHydrator()

Get the hydrator to use for each row object

Return type:HydratorInterface

1568.1.1.5. current

current()

Iterator: get current item

Return type:object

1568.1.1.6. toArray

toArray()

Cast result set to array of arrays

Return type:array
Throws :ExceptionRuntimeException if any row is not castable to an array