ProductOptionValue::model PHP Method

model() public static method

Returns the static model of the specified AR class.
public static model ( string $className = __CLASS__ ) : ProductOptionValue
$className string active record class name.
return ProductOptionValue the static model class
    public static function model($className = __CLASS__)
    {
        return parent::model($className);
    }

Usage Example

 public function loadModel($id)
 {
     $model = ProductOptionValue::model()->findByPk($id);
     if ($model === null) {
         throw new CHttpException(404, 'The requested page does not exist.');
     }
     return $model;
 }
All Usage Examples Of ProductOptionValue::model