inside of my Zend_Db_Table_Rowset Object i found this:
["_primary:protected"]
… does anybody if theres a way to access this? … maybe something like
$rowsetObject->getPrimary()
Thanks for your help,
Alex
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Zend_Db_Table_Rowsethas no property_primary. What you are refering to is either theZend_Db_Tableinstance you got the Rowset from or aZend_Db_Table_Rowinstance inside the Rowset.For getting the primary key from a
Zend_Db_Tableinstance you can do:For getting the primary key from a
Zend_Db_Table_Rowinstance you can get the table instance and callinfo()on it:Note that this will not work when the row is disconnected, because then
getTable()will returnnull.Or, when using a custom
Zend_Db_Table_Rowyou can add a method that proxies to_getPrimaryKey():