Skip to content

Remember scope target class, improved description of scope methods#96

Merged
bajtos merged 3 commits into
masterfrom
feature/remember-scope-target-class
Apr 4, 2014
Merged

Remember scope target class, improved description of scope methods#96
bajtos merged 3 commits into
masterfrom
feature/remember-scope-target-class

Conversation

@bajtos

@bajtos bajtos commented Apr 3, 2014

Copy link
Copy Markdown
Member

Two changes needed by loopback-angular to correctly generate code for calling scope methods.

The commit re-enabling a skipped test is unrelated.

/to @raymondfeng please review.

Miroslav Bajtoš added 3 commits April 2, 2014 19:32
Store the class of the results returned by a scope find method.
This class is different from the "targetClass" when the relations
is using a third "through" model (e.g. hasAndBelongsToMany).
test/relations: hasMany should fetch all scoped instances

The test is passing with the current implementation.
The description is used by client SDK code-generators like
loopback-angularjs.
@slnode

slnode commented Apr 3, 2014

Copy link
Copy Markdown

All is well
Refer to this link for build results: http://ci.strongloop.com/job/loopback-datasource-juggler/371/

@raymondfeng

Copy link
Copy Markdown
Contributor

LGTM

bajtos added a commit that referenced this pull request Apr 4, 2014
…class

Remember scope target class, improved description of scope methods
@bajtos
bajtos merged commit f368c96 into master Apr 4, 2014
@bajtos
bajtos deleted the feature/remember-scope-target-class branch April 4, 2014 14:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants