protected function findOrCreateModelTranslation($id, $languageId)
    {
        $modelTranslations = OrderStatusTranslation::find()
            ->where(['order_status_id' => $id, 'language_id' => $languageId])->one();
        return (!empty($modelTranslations)) ? $modelTranslations : new OrderStatusTranslation();
    }
protected function findOrCreateModelTranslation($id, $languageId)
    {
        $modelTranslations = OrderStatusTranslation::find()
            ->where(['order_status_id' => $id, 'language_id' => $languageId])->one();
        return (!empty($modelTranslations)) ? $modelTranslations : new OrderStatusTranslation();
    }
protected function findOrCreateModelTranslation ( $ id , $ languageId ) { $ modelTranslations = OrderStatusTranslation :: find ( ) -> where ( [ 'order_status_id' => $ id , 'language_id' => $ languageId ] ) -> one ( ) ; return ( ! empty ( $ modelTranslations ) ) ? $ modelTranslations : new OrderStatusTranslation ( ) ; }
Finds the OrderStatusTranslation model based on 'order_status_id' property.
If the model is not found, a new model will be created.
@param integer $id
@param integer $languageId
@return OrderStatusTranslation|ActiveRecord the loaded model
Finds the OrderStatusTranslation model based on order_status_id property . If the model is not found a new model will be created .