hi -
I'm not sure what the issue is but if you are tinkering with metaclasses, we first off have an alternate version of DeclarativeBase called DeclarativeBaseNoMeta that has no metaclass installed, and may be a better place to build off custom metaclass solutions as you wont need to be subclassing the internal metaclass used by DeclarativeBase.
I would advise reading the source code for the DeclarativeBase / DeclarativeBaseNoMeta classes, paying special attention to the __init_subclass__() method which is where Declarative now does its work, and ensuring any __init_subclass__ method on your own class is working as expected and not interfering with the one called by SQLAlchemy's class (or just vendor the method yourself if necessary).
> --
> SQLAlchemy -
> The Python SQL Toolkit and Object Relational Mapper
>
>
http://www.sqlalchemy.org/
>
> To post example code, please provide an MCVE: Minimal, Complete, and
> Verifiable Example. See
http://stackoverflow.com/help/mcve for a full
> description.
> ---
> You received this message because you are subscribed to the Google
> Groups "sqlalchemy" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to
sqlalchemy+...@googlegroups.com.
> To view this discussion on the web visit
>
https://groups.google.com/d/msgid/sqlalchemy/5d616bf0-ffa7-4061-adaf-cf1c7577e0fc%40reahl.org.