Fixes on webmodel
This commit is contained in:
parent
e31a89a538
commit
1d19037145
2 changed files with 3 additions and 4 deletions
|
|
@ -42,7 +42,7 @@ if(!is_file($model_file))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
$model=WebModel::load_model($options['m']);
|
WebModel::load_model($options['m']);
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
|
||||||
|
|
@ -62,7 +62,7 @@ try {
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
update_table($model);
|
update_table(Webmodel::$model);
|
||||||
|
|
||||||
$post_install_script=Webmodel::$model_path.$arr_option[0].'/install/post_install.php';
|
$post_install_script=Webmodel::$model_path.$arr_option[0].'/install/post_install.php';
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,6 @@
|
||||||
|
|
||||||
namespace PhangoApp\PhaModels;
|
namespace PhangoApp\PhaModels;
|
||||||
|
|
||||||
use PhangoApp\PhaModels\CoreFields;
|
|
||||||
use PhangoApp\PhaI18n\I18n;
|
use PhangoApp\PhaI18n\I18n;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
@ -243,7 +242,7 @@ class Webmodel {
|
||||||
|
|
||||||
$this->name=$name_model;
|
$this->name=$name_model;
|
||||||
$this->idmodel='Id'.ucfirst($this->name);
|
$this->idmodel='Id'.ucfirst($this->name);
|
||||||
$this->components[$this->idmodel]=new CoreFields\PrimaryField();
|
$this->components[$this->idmodel]=new \PrimaryField();
|
||||||
$this->label=$this->name;
|
$this->label=$this->name;
|
||||||
|
|
||||||
if(!isset(Webmodel::$connection_func[$this->db_selected]))
|
if(!isset(Webmodel::$connection_func[$this->db_selected]))
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue