Mo

I think I am now totally loosing it...

Mo

Ugh, for fucks sake, apparently now this is working...

  1. Event::get()->filter(['ClassName' => 'App\Model\Events\Event']);
wmk

you might use Event::class which is better readable imho

Mo

The classname is set via a drop-down. I use class::class when setting the dropdown's values 😛

Mo

Status is a filter, but no value was selected

Mo

Hmm, dumped the sql query and oddly getting:

  1. WHERE ((Event.Status != ? OR Event.Status IS NULL))
  2. AND (Event"."ClassName" = ?)
Mo

Also tried:

  1. Event::get()->filter(['ClassName' => 'App\Model\Events\Event']);
Mo

There are definitely records with that ClassName in the DB

Mo

It is generated via a ModelAdmin search form

Mo

Anyone know why this query isn't working:

  1. Event::get()->filter(['ClassName' => 'App\\Model\\Events\\Event']);
Mo

(I know you were asking about WebP a little while ago)