mirror of
https://github.com/Oreolek/ifhub.club.git
synced 2024-07-01 05:55:02 +03:00
This commit is contained in:
parent
f703c0ebc8
commit
6261a11e58
|
@ -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)) {
|
||||
|
|
Loading…
Reference in a new issue