private function load()
    {
        if ($this->loaded) {
            return;
        }

        $models = (array) $this->query->find();

        $preferred = array();
        if ($this->preferredQuery instanceof \ModelCriteria) {
            $preferred = (array) $this->preferredQuery->find();
        }

        try {
            // The second parameter $labels is ignored by ObjectChoiceList
            parent::initialize($models, array(), $preferred);

            $this->loaded = true;
        } catch (StringCastException $e) {
            throw new StringCastException(str_replace('argument $labelPath', 'option "property"', $e->getMessage()), null, $e);
        }
    }
private function load()
    {
        if ($this->loaded) {
            return;
        }

        $models = (array) $this->query->find();

        $preferred = array();
        if ($this->preferredQuery instanceof \ModelCriteria) {
            $preferred = (array) $this->preferredQuery->find();
        }

        try {
            // The second parameter $labels is ignored by ObjectChoiceList
            parent::initialize($models, array(), $preferred);

            $this->loaded = true;
        } catch (StringCastException $e) {
            throw new StringCastException(str_replace('argument $labelPath', 'option "property"', $e->getMessage()), null, $e);
        }
    }
private function load ( ) { if ( $ this -> loaded ) { return ; } $ models = ( array ) $ this -> query -> find ( ) ; $ preferred = array ( ) ; if ( $ this -> preferredQuery instanceof \ ModelCriteria ) { $ preferred = ( array ) $ this -> preferredQuery -> find ( ) ; } try { // The second parameter $labels is ignored by ObjectChoiceList parent :: initialize ( $ models , array ( ) , $ preferred ) ; $ this -> loaded = true ; } catch ( StringCastException $ e ) { throw new StringCastException ( str_replace ( 'argument $labelPath' , 'option "property"' , $ e -> getMessage ( ) ) , null , $ e ) ; } }
Loads the complete choice list entries, once.

If data has been loaded the choice list is initialized with the retrieved data.
Loads the complete choice list entries once .