Skip to content

Saving with ID #7

@trurl-master

Description

@trurl-master

Hi!
Is there a way to create a cell with id?

What i expected, because it's mimicking propel:

var myBook = bookstore.books()
    .setId(1)
    .setTitle('Cold Winds')
    .save();

But that obviously not the way how it works now.

Temporarily i added a method named create that just sends record as POST request instead of PUT, so i do:

var myBook = bookstore.books(1)
    .setTitle('Cold Winds')
    .create();

It works fine, but maybe there is a better way?

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions