private function load()
    {
        $this->cached = [];
        $entities = $this->daoGeneric->getEntities($this->entityName);
        foreach ($entities as $one) {
            $id = $one[ETypeBase::A_ID];
            $code = $one[ETypeBase::A_CODE];
            $this->cached[$code] = $id;
        }
    }
private function load()
    {
        $this->cached = [];
        $entities = $this->daoGeneric->getEntities($this->entityName);
        foreach ($entities as $one) {
            $id = $one[ETypeBase::A_ID];
            $code = $one[ETypeBase::A_CODE];
            $this->cached[$code] = $id;
        }
    }
private function load ( ) { $ this -> cached = [ ] ; $ entities = $ this -> daoGeneric -> getEntities ( $ this -> entityName ) ; foreach ( $ entities as $ one ) { $ id = $ one [ ETypeBase :: A_ID ] ; $ code = $ one [ ETypeBase :: A_CODE ] ; $ this -> cached [ $ code ] = $ id ; } }
Load data and compose "id-by-code" cache.
Load data and compose id - by - code cache .