You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Encountered several problems trying to work with Embedded Models (sample repo provided) #727
Code does not adhere to Embedded objects defined with "forceId": false and ids are created anyways.
From the link above, for EmbedsOne the "Helper methods" section defines methods that do not exist: customer.address.create() and customer.address.update()
From the link above, for EmbedsMany the "Helper methods" section defines methods that do not exist: customer.emails.add()
updateAttributes is available as a function on an EmbedsMany relation even though this is not listed in the documentation
Successive calls to model.save() with an EmbedsOne model after calling create() on an EmbedsMany within the EmbedsOne model triggers a duplicate key issue. Only way to solve problem is to manually call unsetAttribute('id'). (See function addRating() and lines 67-72 in /server/boot/data-preload.js to see what I mean)
I'm having a hard time trying to understand the "embeds" feature through the official documentation. I believe @vanraizen contribution can help with that. I intend to use loopback in production, but I saw many old issues like this, still with no solution. What should I expected for the future of loopback? Thanks.
I'm having the same "count" problem. The filter is not working either. I think that we need to use just the standard old relational relations to continue using strongloop without problems. That's what i'm going to do for now...
Activity
loay commentedon May 31, 2016
Thanks. I am having a look.
dpasqualin commentedon Oct 29, 2016
I'm having a hard time trying to understand the "embeds" feature through the official documentation. I believe @vanraizen contribution can help with that. I intend to use loopback in production, but I saw many old issues like this, still with no solution. What should I expected for the future of loopback? Thanks.
jhonasn commentedon Dec 9, 2016
I'm having the same "count" problem. The filter is not working either. I think that we need to use just the standard old relational relations to continue using strongloop without problems. That's what i'm going to do for now...