private function loadComponents()
    {
        if (!$this->componentsloaded) {
            foreach ($this->getSettings()->getComponents() as $componentClass) {
                $component = new $componentClass();
                if ($component instanceof ComponentInterface) {
                    $this->addComponent($component);
                }
            }
            $this->componentsloaded = true;
        }
    }
private function loadComponents()
    {
        if (!$this->componentsloaded) {
            foreach ($this->getSettings()->getComponents() as $componentClass) {
                $component = new $componentClass();
                if ($component instanceof ComponentInterface) {
                    $this->addComponent($component);
                }
            }
            $this->componentsloaded = true;
        }
    }
private function loadComponents ( ) { if ( ! $ this -> componentsloaded ) { foreach ( $ this -> getSettings ( ) -> getComponents ( ) as $ componentClass ) { $ component = new $ componentClass ( ) ; if ( $ component instanceof ComponentInterface ) { $ this -> addComponent ( $ component ) ; } } $ this -> componentsloaded = true ; } }
Load the components to the orm.
Load the components to the orm .