我有以下sql查詢,我需要在zend2中編寫它。 DELETE FROM test_table WHERE user_id = 2 ORDER BY id ASC LIMIT 10
我試着用這樣的: $sql = new Sql($this->dbAdapter);
$delete = $sql->delete();
$delete->from('test_table');
$delet
如何在TableGateway的模型表中加入? 我有這個在我的模型/ NoticiasTable.php: protected $tableGateway;
public function __construct(TableGateway $tableGateway) {
$this->tableGateway = $tableGateway;
}
pu
我從Zend框架1.4至2.4遷移的項目,我有一類「供應商/自定義/班/ user.php的」 <?php
namespace Classes;
use Zend\Db\TableGateway\TableGateway;
use Zend\ServiceManager\FactoryInterface;
use Zend\ServiceManager\ServiceLocatorIn