Class \Prado\Data\SqlMap\Configuration\TResultProperty
The \Prado\Data\SqlMap\Configuration\NullValue attribute can be set to any valid value (based on property type). The \Prado\Data\SqlMap\Configuration\NullValue attribute is used to specify an outgoing null value replacement. What this means is that when a null value is detected in the result, the corresponding value of the \Prado\Data\SqlMap\Configuration\NullValue will be used instead.
The \Prado\Data\SqlMap\Configuration\Select property is used to describe a relationship between objects and to automatically load complex (i.e. user defined) property types. The value of the \Prado\Data\SqlMap\Configuration\Select property must be the name of another mapped statement. The value of the database \Prado\Data\SqlMap\Configuration\Column that is defined in the same property element as this statement attribute will be passed to the related mapped statement as the parameter. The \Prado\Data\SqlMap\Configuration\LazyLoad attribute can be specified with the \Prado\Data\SqlMap\Configuration\Select .
Class hierarchy
Author: Wei Zhuo <weizho[at]gmail[dot]com>Since: 3.1
public
|
|
public
|
__sleep() : mixed
Returns an array with the names of all variables of that object that should be serialized.
Do not call this method. This is a PHP magic method that will be called automatically prior to any serialization. |
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
getPropertyValue(TSqlMapTypeHandlerRegistry $registry, array<string|int, mixed> $row) : mixed
Gets the value for the current property, converts to applicable type if necessary.
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
instanceOfArrayType(object $target) : bool
Returns true if the result property {@see Type getType()} is of \ArrayAccess
or that the actual result object is an array or implements \ArrayAccess
|
public
|
instanceOfListType(object $target) : bool
Returns true if the result property {@see Type getType()} is of TList type
or that the actual result object is an instance of TList.
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
setSelect(string $value) : mixed
The select property is used to describe a relationship between objects
and to automatically load complex (i.e. user defined) property types.
|
public
|
|
public
|
|
protected
|
createTypeHandler(TSqlMapTypeHandlerRegistry $registry) : TSqlMapTypeHandler
Create type handler from {@see Type setType()} or {@see TypeHandler setTypeHandler}.
|
protected
|
getPropertyValueType() : int
Determines if the type is an instance of \ArrayAccess, TList or an array.
|
protected
|
public
mixed
|
ARRAY_TYPE
|
1
|
public
mixed
|
LIST_TYPE
|
0
|
\Prado\TComponent::GLOBAL_RAISE_EVENT_LISTENER |