I'm trying to dynamically construct a call like this. The only part that changes is Some
SomeQuery::create->findPk($id);
so it could be
WhatQuery::create->findPk($id);
OtherQuery::create->findPk($id);
I tried this, but not sure why it isn't working
$dynamic = "Some";
$tablename = $dynamic."Query::create()";
$$tablename->findPk($id);