Create a new proxy list that will execute the mapped statement when any of the list's method are accessed for the first time.
TLazyLoadList
__construct
(
TMappedStatement $mappedStatement,
mixed $param,
object result $target,
string $propertyName)
-
TMappedStatement
$mappedStatement: statement to be executed to load the data.
-
mixed
$param: parameter value for the statement.
-
object result
$target: object that contains the lazy collection.
-
string
$propertyName: property of the result object to set the loaded collection.
Load the data by executing the mapped statement.
void
fetchListData
()
Try to fetch the data when any of the proxy collection method is called.
boolean
hasMethod
(string $method)
-
string
$method: method name.
Relay the method call to the underlying collection.
void
intercept
(string $method, array $arguments)
-
string
$method: method name.
-
array
$arguments: method parameters.
Create a new instance of a lazy collection.
-
TMappedStatement
$mappedStatement: statement to be executed to load the data.
-
mixed
$param: parameter value for the statement.
-
object result
$target: object that contains the lazy collection.
-
string
$propertyName: property of the result object to set the loaded collection.