1
0
mirror of https://github.com/dg/dibi.git synced 2025-08-15 10:34:06 +02:00

- added DibiPostgreDriver::getIndexes()

- implemented DibiTables types autodetection
- all examples uses Nette::Debug
This commit is contained in:
David Grudl
2008-10-28 19:31:32 +00:00
parent a2d0d66d0f
commit 8d063fe0a1
22 changed files with 758 additions and 26 deletions

View File

@@ -52,7 +52,7 @@ abstract class DibiTable extends DibiObject
/** @var array */
protected $blankRow = array();
/** @var array of pairs [type, format] */
/** @var mixed; TRUE means autodetect, or array of pairs [type, format] */
protected $types = array();
@@ -325,7 +325,12 @@ abstract class DibiTable extends DibiObject
*/
protected function complete($res)
{
$res->setTypes($this->types);
if (is_array($this->types)) {
$res->setTypes($this->types);
} elseif ($this->types === TRUE) {
$res->detectTypes();
}
return $res;
}