Is it possible to turn a query into an element criteria model? Currently I'm doing this:
$criteria = craft()->elements->getCriteria('Conference_Session'); $criteria->conferenceId = $conferenceModel->id; $query = craft()->elements->buildElementsQuery($criteria); $query->order("conference_session.cs_start_time ASC"); $queryResult = $query->queryAll();
I would prefer to be able to be able to add my MySQL commands then turn it back into a element criteria. I don't have to do this but I want to know if I could.