Skip to content

Bug on dbObject->with($objectName) #626

Closed
@tuananh77

Description

@tuananh77

I think there is a mistake at line 386 in the function dbObject->with($objectName)
Currently
if (!property_exists ($this, 'relations') && !isset ($this->relations[$name]))
The correct conditions should be
if (!property_exists ($this, 'relations') || !isset ($this->relations[$objectName]))

Correct me if I'm wrong.
This wrapper is great, and exactly what I need. Excellent work.
Thank you.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions