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 c76d575d
authored
Jun 22, 2012
by
Jan Aagaard Meier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cherry pick looks fine
1 parent
054c7569
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
0 deletions
lib/associations/has-one.js
lib/query-interface.js
lib/associations/has-one.js
View file @
c76d575
...
...
@@ -53,7 +53,12 @@ module.exports = (function() {
var
customEventEmitter
=
new
Utils
.
CustomEventEmitter
(
function
()
{
obj
[
self
.
accessors
.
get
]().
success
(
function
(
oldObj
)
{
if
(
oldObj
)
{
<<<<<<<
HEAD
oldObj
[
self
.
identifier
]
=
null
=======
console
.
log
(
self
.
options
);
oldObj
=
Utils
.
setAttributes
(
oldObj
,
self
.
identifier
,
null
)
>>>>>>>
03
b8bfa
...
option
renamed
to
omitNull
.
Ignores
both
null
and
undefined
.
Tested
and
working
for
postgres
and
sqlite
oldObj
.
save
()
}
...
...
lib/query-interface.js
View file @
c76d575
...
...
@@ -5,6 +5,7 @@ module.exports = (function() {
var
QueryInterface
=
function
(
sequelize
)
{
this
.
sequelize
=
sequelize
this
.
QueryGenerator
=
require
(
'./dialects/'
+
this
.
sequelize
.
options
.
dialect
+
'/query-generator'
)
this
.
QueryGenerator
.
options
=
this
.
sequelize
.
options
;
}
Utils
.
addEventEmitter
(
QueryInterface
)
...
...
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