StoryQuery.php 549 B

12345678910111213141516171819202122232425262728293031323334
  1. <?php
  2. namespace app\models\base;
  3. /**
  4. * This is the ActiveQuery class for [[Story]].
  5. *
  6. * @see Story
  7. */
  8. class StoryQuery extends \yii\db\ActiveQuery
  9. {
  10. /*public function active()
  11. {
  12. return $this->andWhere('[[status]]=1');
  13. }*/
  14. /**
  15. * {@inheritdoc}
  16. * @return Story[]|array
  17. */
  18. public function all($db = null)
  19. {
  20. return parent::all($db);
  21. }
  22. /**
  23. * {@inheritdoc}
  24. * @return Story|array|null
  25. */
  26. public function one($db = null)
  27. {
  28. return parent::one($db);
  29. }
  30. }