toxygene / rend

Automatically exported from code.google.com/p/rend
Other
0 stars 0 forks source link

Improper Class Names for default RowClass and RowsetClasses on Project_Db_Table #4

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Create a model class that extends Project_Db_Table
2. Do not override the $_rowClass and $_rowsetClass properties

Problem:
Receive the exception:
File "Project/Db/Row.php" does not exist or class "Project_Db_Row" was not
found in the file

Solution:
Need to change the Project_Db_Table class to be as below:

abstract class Project_Db_Table extends Zend_Db_Table_Abstract
{

    /**
     * Row class name
     * @var     string
     */
    protected $_rowClass = 'Project_Db_Table_Row';

    /**
     * Rowset class name
     * @var     string
     */
    protected $_rowsetClass = 'Project_Db_Table_Rowset';

}

Original issue reported on code.google.com by konrn...@gmail.com on 6 Jun 2008 at 2:34

GoogleCodeExporter commented 9 years ago

Original comment by justin.h...@gmail.com on 11 Jun 2008 at 12:37

GoogleCodeExporter commented 9 years ago
Fixed [r59]

Original comment by justin.h...@gmail.com on 11 Jun 2008 at 12:47