RedBeanPHP\Repository\Fluid::createTableIfNotExists PHP Метод

createTableIfNotExists() приватный Метод

Orders the Query Writer to create a table if it does not exist already and adds a note in the build report about the creation.
private createTableIfNotExists ( RedBeanPHP\OODBBean $bean, string $table ) : void
$bean RedBeanPHP\OODBBean bean to update report of
$table string table to check and create if not exists
Результат void
    private function createTableIfNotExists(OODBBean $bean, $table)
    {
        //Does table exist? If not, create
        if (!$this->tableExists($this->writer->esc($table, TRUE))) {
            $this->writer->createTable($table);
            $bean->setMeta('buildreport.flags.created', TRUE);
        }
    }