1
0
Fork 0
mirror of https://github.com/Oreolek/ifhub.club.git synced 2024-07-01 05:55:02 +03:00
This commit is contained in:
Mzhelskiy Maxim 2011-02-14 13:32:20 +00:00
parent f703c0ebc8
commit 6261a11e58

View file

@ -247,6 +247,10 @@ class MapperORM extends Mapper {
public function ShowColumnsFrom($oEntity) {
$sTableName = self::GetTableName($oEntity);
return $this->ShowColumnsFromTable($sTableName);
}
public function ShowColumnsFromTable($sTableName) {
$sql = "SHOW COLUMNS FROM ".$sTableName;
$aItems = array();
if($aRows=$this->oDb->select($sql)) {