简体   繁体   中英

New non-table field in Zend_Db_Table_Row

Say i am fetching a single row by using

$row=$model_produc->fetchRow();
it contains category_id but not category_name, i will fetch category name from the category table.


My Question is that how can i add new attribute in $row say $row->category_name ???? Thanks in Advance.

您可以创建一个新对象,从$ row复制值并添加自己的对象。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM