1
0
mirror of https://github.com/dg/dibi.git synced 2025-08-06 14:16:39 +02:00

added new option 'resultDetectTypes' - calls automatically detectTypes()

This commit is contained in:
David Grudl
2010-02-24 06:23:55 +01:00
parent 4054bdc231
commit 527863fcce
2 changed files with 5 additions and 1 deletions

View File

@@ -145,7 +145,7 @@ class dibi
/**#@+
* Configuration options
*/
const ROW_CLASS = 'rowClass';
const RESULT_DETECT_TYPES = 'resultDetectTypes';
const ASC = 'ASC', DESC = 'DESC';
/**#@-*/

View File

@@ -57,6 +57,10 @@ class DibiResult extends DibiObject implements IDataSource
public function __construct($driver, $config)
{
$this->driver = $driver;
if (!empty($config[dibi::RESULT_DETECT_TYPES])) {
$this->detectTypes();
}
}