public function toArray($withNull = false, $asIs = false) {
        $array = parent::toArray();
        unset($array['_table']);

        if ($asIs) {
            return $array;
        }

        $return = array();
        foreach ($array as $name => $value) {
            if (($value === null && !$withNull)) {
                continue;
            } else if (is_object($value) && is_a($value, 'DBScribe\ArrayCollection'))
                $value = $value->getArrayCopy();
            $return[\Util::camelTo_($name)] = $value;
        }
        return $return;
    }
public function toArray($withNull = false, $asIs = false) {
        $array = parent::toArray();
        unset($array['_table']);

        if ($asIs) {
            return $array;
        }

        $return = array();
        foreach ($array as $name => $value) {
            if (($value === null && !$withNull)) {
                continue;
            } else if (is_object($value) && is_a($value, 'DBScribe\ArrayCollection'))
                $value = $value->getArrayCopy();
            $return[\Util::camelTo_($name)] = $value;
        }
        return $return;
    }
public function toArray ( $ withNull = false , $ asIs = false ) { $ array = parent :: toArray ( ) ; unset ( $ array [ '_table' ] ) ; if ( $ asIs ) { return $ array ; } $ return = array ( ) ; foreach ( $ array as $ name => $ value ) { if ( ( $ value === null && ! $ withNull ) ) { continue ; } else if ( is_object ( $ value ) && is_a ( $ value , 'DBScribe\ArrayCollection' ) ) $ value = $ value -> getArrayCopy ( ) ; $ return [ \ Util :: camelTo_ ( $ name ) ] = $ value ; } return $ return ; }
Fetches an array of properties and their values
@param boolean $withNull Indicates whether to return properties with null values too
@param boolean $asIs Indicates whether to return properties as gotten from parent method.
This leaves them with underscores and not camel cases
@return array
Fetches an array of properties and their values