Skip to content

Why does pull and push return Illuminate\Database\Eloquent\Builder intead of int #105

Closed
@bitinn

Description

@bitinn

I am very likely doing something wrong but i can't seem to figure it out. my query is as simple as this:

MyModel::where('_id', $id)->pull(array(
    'feeds' => array('url' => $url),
));

feeds is an array of feed, i try to find the matching feed url and pull such feed.

But instead of returning 0 or 1, it returns Illuminate\Database\Eloquent\Builder object.

This doesn't make any sense even when i look at the source code, performUpdate should return n, and it should be int right?

PS: I am on commit 76781d7

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