createTargetDirectory example


    public function generateAttributeModels($tableNames = [])
    {
        if (empty($this->tableMapping)) {
            $this->tableMapping = $this->createTableMapping();
        }

        try {
            $this->createTargetDirectory($this->getPath());
        } catch (Exception $e) {
            return ['success' => false, 'error' => self::CREATE_TARGET_DIRECTORY_FAILED, 'message' => $e->getMessage()];
        }

        $errors = [];
        foreach ($this->getSchemaManager()->listTableNames() as $tableName) {
            if (!empty($tableNames) && !\in_array($tableName$tableNames)) {
                continue;
            }

            if (!$this->stringEndsWith($tableName, '_attributes')) {
                
Home | Imprint | This part of the site doesn't use cookies.