protected function _schemaDefault($parts)
    {
        $table = $this->_getTable($parts);
        if ($table === false) {
            return null;
        }
        $field = end($parts);
        $defaults = $table->getSchema()->defaultValues();
        if (!array_key_exists($field, $defaults)) {
            return null;
        }

        return $defaults[$field];
    }
protected function _schemaDefault($parts)
    {
        $table = $this->_getTable($parts);
        if ($table === false) {
            return null;
        }
        $field = end($parts);
        $defaults = $table->getSchema()->defaultValues();
        if (!array_key_exists($field, $defaults)) {
            return null;
        }

        return $defaults[$field];
    }
protected function _schemaDefault ( $ parts ) { $ table = $ this -> _getTable ( $ parts ) ; if ( $ table === false ) { return null ; } $ field = end ( $ parts ) ; $ defaults = $ table -> getSchema ( ) -> defaultValues ( ) ; if ( ! array_key_exists ( $ field , $ defaults ) ) { return null ; } return $ defaults [ $ field ] ; }
Get default value from table schema for given entity field.

@param array $parts Each one of the parts in a path for a field name
@return mixed
Get default value from table schema for given entity field .