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 ecd16720
authored
May 09, 2013
by
Daniel Durante
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added final changes as requested by sdepold
1 parent
3c054531
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
3 deletions
README.md
changelog.md
lib/dao.js
README.md
View file @
ecd1672
...
@@ -54,7 +54,8 @@ A very basic roadmap. Chances aren't too bad, that not mentioned things are impl
...
@@ -54,7 +54,8 @@ A very basic roadmap. Chances aren't too bad, that not mentioned things are impl
-
Support for update and delete calls for whole tables without previous loading of instances
-
Support for update and delete calls for whole tables without previous loading of instances
-
Eager loading of nested associations
[
#388
](
https://github.com/sdepold/sequelize/issues/388#issuecomment-12019099
)
-
Eager loading of nested associations
[
#388
](
https://github.com/sdepold/sequelize/issues/388#issuecomment-12019099
)
-
Model#delete
-
Model#delete
-
Validate a model before it gets saved. (Move validation of enum attribute value to validate method)
-
~~Validate a model before it gets saved.~~ Implemented in
[
#601
](
https://github.com/sequelize/sequelize/pull/601
)
, thanks to @durango
-
Move validation of enum attribute value to validate method
-
BLOB
[
#99
](
https://github.com/sequelize/sequelize/issues/99
)
-
BLOB
[
#99
](
https://github.com/sequelize/sequelize/issues/99
)
-
~~Support for foreign keys~~ Implemented in
[
#595
](
https://github.com/sequelize/sequelize/pull/595
)
, thanks to @optilude
-
~~Support for foreign keys~~ Implemented in
[
#595
](
https://github.com/sequelize/sequelize/pull/595
)
, thanks to @optilude
...
...
changelog.md
View file @
ecd1672
# v1.7.0 #
# v1.7.0 #
-
[
FEATURE
]
Validate a model before it gets saved.
[
#601
](
https://github.com/sequelize/sequelize/pull/601
)
, thanks to durango
-
[
DEPENDENCIES
]
replaced underscore by lodash.
[
#954
](
https://github.com/sequelize/sequelize/pull/594
)
. thanks to durango
-
[
DEPENDENCIES
]
replaced underscore by lodash.
[
#954
](
https://github.com/sequelize/sequelize/pull/594
)
. thanks to durango
-
[
BUG
]
Fix string escape with postgresql on raw SQL queries.
[
#586
](
https://github.com/sequelize/sequelize/pull/586
)
. thanks to zanamixx
-
[
BUG
]
Fix string escape with postgresql on raw SQL queries.
[
#586
](
https://github.com/sequelize/sequelize/pull/586
)
. thanks to zanamixx
-
[
BUG
]
"order by" is now after "group by".
[
#585
](
https://github.com/sequelize/sequelize/pull/585
)
. thanks to mekanics
-
[
BUG
]
"order by" is now after "group by".
[
#585
](
https://github.com/sequelize/sequelize/pull/585
)
. thanks to mekanics
...
...
lib/dao.js
View file @
ecd1672
...
@@ -218,9 +218,9 @@ module.exports = (function() {
...
@@ -218,9 +218,9 @@ module.exports = (function() {
Utils
.
_
.
each
(
self
.
values
,
function
(
value
,
field
)
{
Utils
.
_
.
each
(
self
.
values
,
function
(
value
,
field
)
{
// if field has validators
// if field has validators
var
allowsNulls
=
(
self
.
rawAttributes
[
field
].
allowNull
&&
self
.
rawAttributes
[
field
].
allowNull
===
true
&&
(
value
===
null
||
value
===
undefined
));
var
hasAllowedNull
=
(
self
.
rawAttributes
[
field
].
allowNull
&&
self
.
rawAttributes
[
field
].
allowNull
===
true
&&
(
value
===
null
||
value
===
undefined
));
if
(
self
.
validators
.
hasOwnProperty
(
field
)
&&
!
allowsNulls
)
{
if
(
self
.
validators
.
hasOwnProperty
(
field
)
&&
!
hasAllowedNull
)
{
// for each validator
// for each validator
Utils
.
_
.
each
(
self
.
validators
[
field
],
function
(
details
,
validatorType
)
{
Utils
.
_
.
each
(
self
.
validators
[
field
],
function
(
details
,
validatorType
)
{
...
...
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