kinglozzer

You might need to use alertDataQuery() and get your hands dirty writing some SQL

Kong Jin Jie

I think filterByCallback()will hurt my app performance after some time when the data grows

Kong Jin Jie

Yeah. I guess so too. I think my best bet is to use a custom query

Kong Jin Jie

[Emergency] Uncaught Error: Call to a member function setValue() on null

  1. php
  2. 326 /** @var DBField $dbField */
  3. 327 $dbField = singleton($this->model)->dbObject($this->name);
  4. 328 $dbField->setValue($this->value); //<<< THIS IS THE ERROR
  5. 329 return $dbField->RAW();
MichalKleiner

I guess .Count is not a column, that’s why it can’t be used in a filter

MichalKleiner

are you getting any errors @Kong Jin Jie when you go with your snippet ^ ?

MichalKleiner

but I’d say the ORM should be able to deal with this