OEModule\PatientTicketing\models\Queue::notClosing PHP Method

notClosing() public method

NOTE: didn't seem to be able to do this with relation definitions.
public notClosing ( )
    public function notClosing()
    {
        $criteria = new \CDbCriteria();
        $criteria->select = $this->getTableAlias(true) . '.*, count(oc.id)';
        $criteria->join = 'left outer join patientticketing_queueoutcome oc on ' . $this->getTableAlias(true) . '.id = oc.queue_id left join patientticketing_queue oq on oc.outcome_queue_id = oq.id';
        $criteria->condition = 'oq.active = 1';
        $criteria->group = $this->getTableAlias(true) . '.id';
        $this->getDbCriteria()->mergeWith($criteria);
        return $this;
    }