StoryRelationQuery.php 589 B

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