mirror of
https://github.com/dg/dibi.git
synced 2025-08-04 21:28:02 +02:00
DibiColumnInfo: getType() is implemented lazy
This commit is contained in:
@@ -460,7 +460,6 @@ class DibiColumnInfo extends DibiObject
|
||||
{
|
||||
$this->driver = $driver;
|
||||
$this->info = $info;
|
||||
$this->type = self::detectType($this->info['nativetype']);
|
||||
}
|
||||
|
||||
|
||||
@@ -513,6 +512,9 @@ class DibiColumnInfo extends DibiObject
|
||||
*/
|
||||
public function getType()
|
||||
{
|
||||
if ($this->type === NULL) {
|
||||
$this->type = self::detectType($this->info['nativetype']);
|
||||
}
|
||||
return $this->type;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user