/** * (non-PHPdoc). * * @see Alpha\Model\ActiveRecordProviderInterface::rebuildTable() */ public function rebuildTable() { self::$logger->debug('>>rebuildTable()'); $sqlQuery = 'DROP TABLE IF EXISTS ' . $this->BO->getTableName() . ';'; $this->BO->setLastQuery($sqlQuery); if (!($result = self::getConnection()->query($sqlQuery))) { throw new AlphaException('Failed to drop the table [' . $this->BO->getTableName() . '] for the class [' . get_class($this->BO) . '], database error is [' . self::getConnection()->error . ']'); self::$logger->debug('<<rebuildTable'); } $this->BO->makeTable(); self::$logger->debug('<<rebuildTable'); }