How to define table name
Posted:
Tue Jul 17, 2012 9:51 am
by nickla
As i understand QxOrm gets table name from business model name. I use camel case formating in my project and want to use different model name from database table name. How can i set table name from business model?
Re: How to define table name
Posted:
Tue Jul 17, 2012 9:53 am
by nickla
Re: How to define table name
Posted:
Tue Jul 17, 2012 12:11 pm
by QxOrm admin
Hi,
Yes !
Here is another topic with the same question :
http://www.qxorm.com/forum/phpbb/viewto ... 8a8c3980a2And here is the solution :
- Code: Select all
namespace qx {
template <> void register_class(QxClass<my_class> & t)
{
t.setName("TABLE_NAME");
//...
}}