How to add restriction on update request in Zend Framework?

How to add LIMIT 1update offer when using Zend Framework?

I, as it were, are forced to not use Zend_Db_Table_Abstract::update(), because it performs itself unlike sweet Zend_Db_Select-classes.

The reason for this is just a precaution, and I think the Zend_Db_Table_Abstract::update()syntax makes more sense if it is found in the code than more allround Zend_Db_Adapter_Abstract::query().

+3
source share
2 answers

You can not.

There is a problem created for this exact problem in tracking problems . But this function is still not implemented.

+3

??? ,

UPDATE <table> SET field=<newvalue>, ... WHERE key = <keyvalue>;

.

+1

Source: https://habr.com/ru/post/1723105/


All Articles