src/CarteBlanche/Library/AutoObject/AutoObject.php
protected function _buildFieldsByType()
    {
        $this->object_fields_by_type = array(
            'num'=>array(),
            'str'=>array(),
            'rel'=>array()
        );
        foreach ($this->getStructureEntry('structure') as $_field=>$_data) {
            if (
                preg_match('/^integer(\((.*)\))?/i', $_data['type']) ||
                preg_match('/^float(\((.*)\))?/i', $_data['type'])
            ) $this->object_fields_by_type['num'][] = $_field;
            elseif (
                preg_match('/^varchar(\((.*)\))?/i', $_data['type']) ||
                preg_match('/(.*)text$/i', $_data['type'])
            ) $this->object_fields_by_type['str'][] = $_field;
            elseif (
                preg_match('/^(.*)_id$/i', $_data['type'])
            ) $this->object_fields_by_type['rel'][] = $_field;
        }
    }
protected function _buildFieldsByType()
    {
        $this->object_fields_by_type = array(
            'num'=>array(),
            'str'=>array(),
            'rel'=>array()
        );
        foreach ($this->getStructureEntry('structure') as $_field=>$_data) {
            if (
                preg_match('/^integer(\((.*)\))?/i', $_data['type']) ||
                preg_match('/^float(\((.*)\))?/i', $_data['type'])
            ) $this->object_fields_by_type['num'][] = $_field;
            elseif (
                preg_match('/^varchar(\((.*)\))?/i', $_data['type']) ||
                preg_match('/(.*)text$/i', $_data['type'])
            ) $this->object_fields_by_type['str'][] = $_field;
            elseif (
                preg_match('/^(.*)_id$/i', $_data['type'])
            ) $this->object_fields_by_type['rel'][] = $_field;
        }
    }
Build an organized array of the object fields, by type (string, numeric or relation)
@return void