diff --git a/library/Haste/Generator/ModelData.php b/library/Haste/Generator/ModelData.php index 947ce21..70f6636 100644 --- a/library/Haste/Generator/ModelData.php +++ b/library/Haste/Generator/ModelData.php @@ -36,7 +36,7 @@ public static function generate(\Model $objModel=null, $varCallable=null) } $strTable = $objModel->getTable(); - $objDca = new \DcaExtractor($strTable); + $objDca = \DcaExtractor::getInstance($strTable); $arrRelations = $objDca->getRelations(); $arrData = array();