public function __fieldFix()
    {
        $schema = $this->getClassSchema();
        foreach ($this->__calculateSaveDownRows() as $column) {
            if (!isset($schema[$column]['type'])) {
                throw new Exception("No type hinting/docblock found for '{$column}' in '" . get_called_class() . "'.", E_USER_WARNING);
            }

            $type = $schema[$column]['type'];
            if ($type == "integer" && !is_int($this->$column)) {
                $this->$column = intval($this->$column);
            }
        }
        return true;
    }
public function __fieldFix()
    {
        $schema = $this->getClassSchema();
        foreach ($this->__calculateSaveDownRows() as $column) {
            if (!isset($schema[$column]['type'])) {
                throw new Exception("No type hinting/docblock found for '{$column}' in '" . get_called_class() . "'.", E_USER_WARNING);
            }

            $type = $schema[$column]['type'];
            if ($type == "integer" && !is_int($this->$column)) {
                $this->$column = intval($this->$column);
            }
        }
        return true;
    }
public function __fieldFix ( ) { $ schema = $ this -> getClassSchema ( ) ; foreach ( $ this -> __calculateSaveDownRows ( ) as $ column ) { if ( ! isset ( $ schema [ $ column ] [ 'type' ] ) ) { throw new Exception ( "No type hinting/docblock found for '{$column}' in '" . get_called_class ( ) . "'." , E_USER_WARNING ) ; } $ type = $ schema [ $ column ] [ 'type' ] ; if ( $ type == "integer" && ! is_int ( $ this -> $ column ) ) { $ this -> $ column = intval ( $ this -> $ column ) ; } } return true ; }
Fix types of fields to match definition
Fix types of fields to match definition