public function showDictionaryEntriesSelect($id) { $model = new DictionaryEntry(); return $model->select()->where('id_dictionary = ?', $id)->where('ghost = false')->order(array('id_entry')); }
public function getDictionaryEntries() { $branch = new DictionaryEntry(); $select = $branch->select()->where('id_dictionary = ?', $this->id)->where('ghost = false')->order(array('id_entry')); return $select; }