I have component called "MyComponent" and table class called "MyComponentTableSample". In model I create instance to table:
$table = JTable::getInstance('Sample', 'MyComponentTable');
then I want to setDBO
and execute table's method that contains:
$row = new stdClass(); $row->primary_key = 1; $row->field_name = "something"; $this->bind($row); $this->store(TRUE);
Unfortunately, it doesn't insert/update row in database. I checked and
store() return true. When I call out
$this->_db from table's method, it returns me
["_database":"JDatabase":private]=> string(20) "my_databaseName"
what is correct and it means dbo has been set, but still there is no row in database.
$this->getErrors() from table returns empty array