Class TResultMap
TResultMap corresponds to <resultMap> mapping tag.
A TResultMap lets you control how data is extracted from the result of a query, and how the columns are mapped to object properties. A TResultMap can describe the column type, a null value replacement, and complex property mappings including Collections.
The <resultMap> can contain any number of property mappings that map object properties to the columns of a result element. The property mappings are applied, and the columns are read, in the order that they are defined. Maintaining the element order ensures consistent results between different drivers and providers.
The Class setClass() property must be a PHP class object or array instance.
The optional Extends setExtends() attribute can be set to the ID of another <resultMap> upon which to base this <resultMap>. All properties of the "parent" <resultMap> will be included as part of this <resultMap>, and values from the "parent" <resultMap> are set before any values specified by this <resultMap>.
- TComponent
-
TResultMap
Copyright: Copyright © 2005-2014 PradoSoft
License: http://www.pradosoft.com/license/
Author: Wei Zhuo <weizho[at]gmail[dot]com>
Since: 3.1
Located at Data/SqlMap/Configuration/TResultMap.php
public
|
|
public
string
|
|
public
|
|
public
string
|
|
public
|
|
public
|
|
public
string
|
|
public
|
|
public
string
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
mixed
|
#
createInstanceOfResult(
Create a new instance of the class of this result map. |
public
|
#
resolveSubMap(
Result sub-mappings using the discriminiator column. |
GLOBAL_RAISE_EVENT_LISTENER
|