protected function initTypes()
    {
        $class = $this->getClassName(false);
        $types = $this->getModelTypes();
        $type = $this->_type;

        if (!$type || !is_array($type)) {
            if(!empty($types)){
                $this->_type = $types;
            }
        } elseif (!in_array($class, $type)) {
            $type[] = $class;
            $this->_type = $type;
        }

    }
protected function initTypes()
    {
        $class = $this->getClassName(false);
        $types = $this->getModelTypes();
        $type = $this->_type;

        if (!$type || !is_array($type)) {
            if(!empty($types)){
                $this->_type = $types;
            }
        } elseif (!in_array($class, $type)) {
            $type[] = $class;
            $this->_type = $type;
        }

    }
protected function initTypes ( ) { $ class = $ this -> getClassName ( false ) ; $ types = $ this -> getModelTypes ( ) ; $ type = $ this -> _type ; if ( ! $ type || ! is_array ( $ type ) ) { if ( ! empty ( $ types ) ) { $ this -> _type = $ types ; } } elseif ( ! in_array ( $ class , $ type ) ) { $ type [ ] = $ class ; $ this -> _type = $ type ; } }
Initialize the "_type" attribute for the model

@return null
Initialize the _type attribute for the model