This is the first time I've come across this issue. When saving one of my models I get the error message: "This row has been marked read-only". Not sure why I'm getting this error and how to solve it. The stack trace didn't help me. How can I resolve this issue so I can save the record?
标签:
zend-framework
相关问题
- Zend Auth locked session
- Zend/PHP: Problem uploading/downloading file to/fr
- PHP Zend Framework - Zend_Config and global state
- 'Zend_Db_Statement_Exception' with message
- How to handle with foreign languages?
相关文章
- Possible disadvantages of Zend [closed]
- Zend Framework Modules with common resources
- Zend Form Validator Callback: How to exclude a use
- Exception while setting up the wurfl in zend
- How to create admin in Zend framework?
- zend framework and jquery - attach event from serv
- Magento: Programatically update cart via event
- move_uploaded_file() with Zend doens't
Having a row marked as read only can be the result from any of the following operations:
Zend_Db_Select
query joined with another tablesetIntegrityCheck(false)
was set on the select objectIf any of the above conditions are true, then the resulting row object will be marked as read only, because Zend_Db cannot guarantee that all columns in the result reference the original parent table of the select object. Therefore any attempt to call
update()
,save()
, ordelete()
, on the row object will fail.Some of this information is spread throughout the Zend_Db_Table reference, where if you search for
integrity
you can see a number of instances where rows will be marked read only.