Symfony\Bridge\Doctrine\Form\ChoiceList\EntityChoiceList::getEntities PHP Method

getEntities() public method

If the choices were not initialized, they are initialized now. This is an expensive operation, except if the entities were passed in the "choices" option.
public getEntities ( ) : array
return array An array of entities
    public function getEntities()
    {
        if (!$this->loaded) {
            $this->load();
        }

        return $this->entities;
    }