nciri / zend-db-model-generator

Automatically exported from code.google.com/p/zend-db-model-generator
0 stars 0 forks source link

$_dependentTables in DbTable war wrong #36

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Zend said: 

    /**
     * Simple array of class names of tables that are "children" of the current
     * table, in other words tables that contain a foreign key to this one.
     * Array elements are not table names; they are class names of classes that
     * extend Zend_Db_Table_Abstract.
     *

At the Moment it's just the class name of the table.

line 120 hast to be changed to

$dependents[] = $this->_namespace . '_Model_DbTable_' . 
$this->_getClassName($info['foreign_tbl_name']);

I have no repro at the moment, so use the attached file. Maybe v2 ist also 
effected

Original issue reported on code.google.com by volker.r...@googlemail.com on 21 Nov 2013 at 2:03

Attachments:

GoogleCodeExporter commented 8 years ago
thanks for noticing.
i commited the fix. it will be available in the next version of zdmg.

Original comment by kfirufk@gmail.com on 2 Dec 2013 at 11:21