コード例 #1
0
 /**
  * @param int $id
  * @return TestModel
  */
 protected function findStandardModel($id)
 {
     $model = parent::findStandardModel($id);
     $model->setListifyConfig('scope', $this->getScopeQueryBuilder());
     return $model;
 }
コード例 #2
0
 /**
  * @param int $id
  * @return TestModel
  */
 protected function findStandardModel($id)
 {
     $model = parent::findStandardModel($id);
     $model->setListifyConfig('scope', '`scope` = 1');
     return $model;
 }
コード例 #3
0
 /**
  * @param int $id
  * @return TestModel
  */
 protected function findStandardModel($id)
 {
     $model = parent::findStandardModel($id);
     $model->setListifyConfig('scope', $model->testRelatedModel());
     return $model;
 }
コード例 #4
0
 /**
  * @param int $id
  * @return TestModel
  */
 protected function findStandardModel($id)
 {
     $model = parent::findStandardModel($id);
     $model->setListifyConfig('scope', $this->getScopeMethodCallable());
     return $model;
 }