Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
public
/
sequelize
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
不要怂,就是干,撸起袖子干!
Commit 0d086512
authored
Apr 17, 2013
by
Jonathan Crossman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- useful error message for bad data type (fixes #551)
1 parent
3580e56d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
lib/sequelize.js
lib/sequelize.js
View file @
0d08651
...
@@ -151,6 +151,12 @@ module.exports = (function() {
...
@@ -151,6 +151,12 @@ module.exports = (function() {
options
=
options
||
{}
options
=
options
||
{}
var
globalOptions
=
this
.
options
var
globalOptions
=
this
.
options
for
(
var
name
in
attributes
){
if
(
attributes
[
name
].
type
===
undefined
){
throw
new
Error
(
daoName
+
'.'
+
name
+
' has been set it an undefined data type.'
);
}
}
if
(
globalOptions
.
define
)
{
if
(
globalOptions
.
define
)
{
options
=
Utils
.
_
.
extend
({},
globalOptions
.
define
,
options
)
options
=
Utils
.
_
.
extend
({},
globalOptions
.
define
,
options
)
Utils
.
_
([
'classMethods'
,
'instanceMethods'
]).
each
(
function
(
key
)
{
Utils
.
_
([
'classMethods'
,
'instanceMethods'
]).
each
(
function
(
key
)
{
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment