using Model to retrieve record by ID but ignore published = "yes"
I have a controller that is creating a record in a model dynamically and based off certain parameters it may create that record where published = "no". I'm using $record = $this->model->create($array) and $id = $record->save() but when I do $this->model->find_by_key($id), it returns an empty result because the record was created with 'published' = 'no'. How do I get around this? This is the only spot in the site that I want to access an 'un-published' record -- I want those records hidden otherwise
Comments
function _common_query() { }