Search code examples
phppostgresqlyiiyii-extensionsx-editable

data-pk attribute not showing in the x-editable CGridview


I am using x-editable to use inline editing in CGridview. http://x-editable.demopage.ru/index.php I am using postgresql as the database. The problem is that I am using functions in postgres to write queries and I am calling those functions from yii. The data provider I am using is CSqlDataprovider. So while using the inline edit the data-pk attribute is not showing in the grid view. So the update is not working. Please help.


Solution

  • Try to set keyField of dataProvider to 'id'.

    dataProvider->keyField ='id';