Skip to content

Exception thrown if no data updated #6

@ElGigi

Description

@ElGigi

throw Exception::unexpectedRowCountAffected($rowCount);

Why thrown an exception if no data updated in a record?
If original record it's the same as persisted record, it's more judicious to do not perform an update instead thrown an exception.

Especially since this is a problem when you save changes only in child records.
Cf: atlasphp/Atlas.Transit#17

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