Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

exception: vendor/sam-it/yii2-mariadb/src/Schema.php line: 83 #19

Closed
rulon opened this issue Apr 20, 2022 · 3 comments
Closed

exception: vendor/sam-it/yii2-mariadb/src/Schema.php line: 83 #19

rulon opened this issue Apr 20, 2022 · 3 comments
Labels

Comments

@rulon
Copy link

rulon commented Apr 20, 2022

subj
Undefined index: dbname.tablename

Here inited different array keys.
In line 66 $table->name === 'tablename'
In 83 getter is: 'dbname.tablename' === 'dbname.tablename'

image

my project to use multy db.
my some models have method like:

    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return DB_NAME_CRM . '.tablename';
    }

@rulon
Copy link
Author

rulon commented Apr 20, 2022

maybe you need to update line 66 to $this->jsonColumns[$this->currentTable] = ...

@SamMousa
Copy link
Contributor

You're right, seems to be a bug that is not caught because tests don't use schemas

@github-actions
Copy link

🎉 This issue has been resolved in version 3.1.1 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants