Problem with storing into database

Hello,

I have a problem while storing into the database.
If I execute an insert query everything is fine and working but if I use save() function, it is inserted into the database but empty,
Even if I use this example.


$product = oxNew( 'oxarticle' );
$product->oxarticles__oxtitle = new oxField ( 'productTitle' );
$product->oxarticles__oxshortdesc = new oxField( 'shortdescription' );
$product->save();

What might be causing this problem?

Thank you.
Martina

this code works for me

If I try this for example:

    $manufacturer=oxNew('oxmanufacturer');
	$manufacturer->oxmanufacturers__oxtitle=new oxField('Title1');
	$manufacturer->oxmanufacturers__ebox_manufacturer_code=new oxField('Code1');
	$manufacturer->save();

the data for [I]ebox_manufacturer_code[/I] is inserted, but [I]oxtitle[/I] is empty.

this code also works for me.

Do you have multiple languages in your shop? Your data might be stored into different language than you are viewing

Ohh :confused:
Can’t believe. That is the problem.
Thank you!