2009年7月15日星期三

Re: [fw-db] Zend_Db_Table_Abstract strange table name

There is a limit in mysql to table and identifier names being less than
64 characters. I think you are hitting this limit :)

> "saycms_modules_movieslibrary_table_moviedubtypes_moviedubtype_i" does
> not exist' in /mnt/ware/PRIVAT/PROJECTS/saycms_on_php/lib/Zend/Db/Statement/Pdo.php:238
> Stack trace: #

Just a word of advice though: your class names and table names dont have
to have a 1-1 naming relationship. This is primarily why you can have a
different table $_name, than the actual name of the class.

For your above example, i think its totally acceptable to have the table
named: "moviedubtype"

This will also make building custom queries easier later.

-ralph

没有评论: