I have a table called dwstage. i added a new column in it called [B]autoplay[/B]. Now the problem is whenever i save my updates all previous columns are updating except this column. do i need to do anything else?
PS: i am new to oxid.
I have a table called dwstage. i added a new column in it called [B]autoplay[/B]. Now the problem is whenever i save my updates all previous columns are updating except this column. do i need to do anything else?
PS: i am new to oxid.
you need to show us your code
this is my update function:
// Update data.
public function update_data()
{
// Fetch 'oxid' (id) from table.
$fetched_oxid_id = oxDb::getDb()->getOne( $this->oxid_id );
// Assign values to table columns.
$this->homePage->load( $fetched_oxid_id );
$this->homePage->dwstage__pagename = new oxField( self::$stage_id );
$this->homePage->dwstage__data = new oxField( $this->data );
$this->homePage->dwstage__autoplay = new oxField( $this->autoplay );
$this->homePage->dwstage__autoloop = new oxField( $this->autoloop );
$this->homePage->save();
}
and this is my model:
class homePage_model extends oxI18n
{
/**
* Name of the table.
* @var string
*/
protected $_sCoreTbl = 'dwstage';
/**
* Name of current class.
* @var string
*/
protected $_sClassName = 'homePage_model';
/**
* Class constructor, initiates parent constructor (parent::oxBase()).
*/
public function __construct()
{
parent::__construct();
$this->init( 'dwstage' );
}
}
do you need any other thing?
Did you empty /tmp and update views?
Oh… i forgot about the tmp folder. thanks its working now.
same problem with me please give me some other suggestions…