You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
			
				
					20 lines
				
				328 B
			
		
		
			
		
	
	
					20 lines
				
				328 B
			| 
								 
											7 years ago
										 
									 | 
							
								<?php
							 | 
						||
| 
								 | 
							
								/**
							 | 
						||
| 
								 | 
							
								 * Created by Error202
							 | 
						||
| 
								 | 
							
								 * Date: 27.07.2018
							 | 
						||
| 
								 | 
							
								 */
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								namespace common\modules\forms\entities\queries;
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								use common\modules\forms\entities\FormMessage;
							 | 
						||
| 
								 | 
							
								use yii\db\ActiveQuery;
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								class FormMessageQuery extends ActiveQuery
							 | 
						||
| 
								 | 
							
								{
							 | 
						||
| 
								 | 
							
									public function unread()
							 | 
						||
| 
								 | 
							
									{
							 | 
						||
| 
								 | 
							
										return $this->andWhere([
							 | 
						||
| 
								 | 
							
											'new' => FormMessage::STATUS_NEW,
							 | 
						||
| 
								 | 
							
										]);
							 | 
						||
| 
								 | 
							
									}
							 | 
						||
| 
								 | 
							
								}
							 |