PHP Doctrine 1.2 table names
        Posted  
        
            by Ofir
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by Ofir
        
        
        
        Published on 2010-01-13T15:42:16Z
        Indexed on 
            2010/04/24
            20:43 UTC
        
        
        Read the original article
        Hit count: 273
        
I'm trying to upgrade my doctrine ORM from 1.1.6 to 1.2.1 but i've enountered a BC issue with table names.
Some of my table names have several words (e.g. t_foo_bar for class FooBar) where the t_ prefix is generated automatically with:
$manager->setAttribute(Doctrine_Core::ATTR_TBLNAME_FORMAT, 't_%s');
This worked well in previous versions. In 1.2.1 however, it looks like doctrine is looking for t_foobar (instead of t_foo_bar with an underscore).
Do you know how to solve this without changing the table names?
© Stack Overflow or respective owner