Files
SmartHomePHP/models/query/DeviceQuery.php
2017-09-01 18:22:12 +03:00

35 lines
599 B
PHP

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