lithium\data\Schema::_init PHP Method

_init() protected method

protected _init ( )
    protected function _init()
    {
        parent::_init();
        foreach ($this->_fields as $key => $type) {
            if (is_string($type)) {
                $this->_fields[$key] = compact('type');
                continue;
            }
            if (isset($this->_fields[$key][0]) && !isset($this->_fields[$key]['type'])) {
                $this->_fields[$key]['type'] = $this->_fields[$key][0];
                unset($this->_fields[$key][0]);
            }
        }
    }

Usage Example

 protected function _init()
 {
     $this->_autoConfig[] = 'handlers';
     parent::_init();
 }
All Usage Examples Of lithium\data\Schema::_init