12345678910111213141516171819202122232425262728293031323334 |
- <?php
- namespace app\models\base;
- /**
- * This is the ActiveQuery class for [[NewsTopic]].
- *
- * @see NewsTopic
- */
- class NewsTopicQuery extends \yii\db\ActiveQuery
- {
- /*public function active()
- {
- return $this->andWhere('[[status]]=1');
- }*/
- /**
- * {@inheritdoc}
- * @return NewsTopic[]|array
- */
- public function all($db = null)
- {
- return parent::all($db);
- }
- /**
- * {@inheritdoc}
- * @return NewsTopic|array|null
- */
- public function one($db = null)
- {
- return parent::one($db);
- }
- }
|