function _createModelAndIncludeThem($table_name, $object_name) { $table = $this->conn->getDatabaseInfo()->getTable($table_name); $model_constructor = new lmbModelConstructor(new lmbProjectConstructor($this->dir_for_test_case, new lmbCliOutput()), $this->conn->getDatabaseInfo(), $table, $object_name); $model_constructor->create(); foreach (lmb_glob($this->dir_for_test_case . '/src/model/*.class.php') as $file) { lmb_require($file); } }
public function create() { $vars = array('model_url' => lmb_under_scores($this->_model_name)); $this->_createRootElementIfNotExists(); parent::create($vars); }