When I call method FindDependentRowset, returning rows have all the rows in the dependent table, and not just router Match References
I'm hoping someone can explain this because I believed that the dependent only matches my 'rule'?
I have the following DBTable models:
class Model_DbTable_Advertisement reaches Zend_Db_Table_Abstract {secure $ _name = 'ads'; Protected $ _primary = 'ID'; Protected $ _ Dissentant = Array ('Model_DbTable_Image',); } Class Model_DbTable_Image Zend_Db_Table_Abstract Extended {Protected $ _name = 'Picture'; Protected $ _primary = 'ID'; Secure $ _referenceMap = array ('Images' = & gt; array ('column' = & gt; 'ad id', 'rack column' = & gt; 'id', 'refTableClass' => 'Model_DbTable_Advertisement')) ; }
Now when I execute the following: (Simplified for the question)
$ Model = New Model_DbTable_Advertisement (); $ RowSet = $ model- & gt; Fatch ALL (); $ Line = $ row -set-> Present (); $ DRow = $ row- & gt; FindDondondareShoulderSite ('Model_DbTable_Image');
I hope that $ dRow only includes 'Images' which hold the same Ad ID as the $ line, but instead I get all the rows in the Image Table.
Documentation seems to say that you can tell some elements incorrectly in your reference map for the second table. Are there. See 'Columns' and 'Ric Columns' keys changing with 'Columns' and 'Riff Colm' and then move the string value to the Singleton Array.
For more information, see
Comments
Post a Comment