CDbCommand failed to execute the SQL statement: SQLSTATE[HY000]: General error: 2290 OCIStmtExecute: ORA-02290: check constraint (ORA02.AVCON_1054816703_LODE__000) violated
My code is
<div class="row" align="left">
<?php echo CHtml::activeLabelEx($model,'LODE_TITOLO'); ?>
<br />
<?php echo CHtml::activeRadioButtonList($model,'LODE_TITOLO',array(1=>'SI',2=>'NO'),array('size'=>2,'maxlength'=>2,'separator'=>' '));?>
<?php echo CHtml::error($model,'LODE_TITOLO'); ?>
</div>
I do not understand why if I use the activeRadioButtonList problems to enter the value in the db … if not … a activeTextField data is entered correctly …
<div class="row" align="left">
<?php echo CHtml::activeLabelEx($model,'LODE_TITOLO'); ?>
<br />
<?php echo CHtml::activeTextField($model,'LODE_TITOLO');?>
<?php echo CHtml::error($model,'LODE_TITOLO'); ?>
</div>
This code work correctly…