You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We are extending ProductVariant in order to add some of our own logic to it. We have our lunar models using a separate database connection to the rest of the site (specified in lunar.database.connection).
Everything works fine except creating new products. When you submit inside the modal, we get the error:
SQLSTATE[42S02]: Base table or view not found: 1146 Table '{database}.lunar_product_variants' doesn't exist (Connection: mysql, SQL: select count(*) as aggregate from lunar_product_variantswheresku = 123)
{database} is the default database, not the lunar one.
The stack trace is pretty unhelpful, its mostly inside illuminate connection classes and filament interacts with forms. I can't see anything related to Lunar, but obviously this is being caused by model extending.
Are you able to replicate it and see if you can find a solution?
The text was updated successfully, but these errors were encountered:
We are extending ProductVariant in order to add some of our own logic to it. We have our lunar models using a separate database connection to the rest of the site (specified in lunar.database.connection).
Everything works fine except creating new products. When you submit inside the modal, we get the error:
SQLSTATE[42S02]: Base table or view not found: 1146 Table '{database}.lunar_product_variants' doesn't exist (Connection: mysql, SQL: select count(*) as aggregate from
lunar_product_variantswhere
sku= 123)
{database} is the default database, not the lunar one.
The stack trace is pretty unhelpful, its mostly inside illuminate connection classes and filament interacts with forms. I can't see anything related to Lunar, but obviously this is being caused by model extending.
Are you able to replicate it and see if you can find a solution?
The text was updated successfully, but these errors were encountered: