Hello,
I have a sql table that has an id with a different name from « id » :
CREATE TABLE IF NOT EXISTS `products` (
`id_product` int(11) NOT NULL AUTO_INCREMENT,
…
In the productsdao.php file, I have define the IdColumnName like this :
protected function initDaoProperties() {
$this->table = " products ";
$this->IdColumnName = "id_product";
}
Now, I have this error:
"DAO-006: the parameter 'rowID' is absent when calling the method 'DAO::remove()'
or the properties 'filterValues' and 'filterClause' are not properly set for
the class 'app\model\AysDAO' to remove data row! - C:\Program Files
(x86)\EasyPHP-DevServer-14.1VC11\data\localweb\znetdk\engine\core\dao.php(398)"
Please, can you help me?
Regards,
Thank you for your help, the 'zdk-row-id' class resolves my issue.:-)
<input class="zdk-row-id" name="product_id" disabled type="text">
Regards,
Ivan