Skip to content

[Form] __call to get property value #5850

Closed
@rnijveld

Description

@rnijveld

Currently when a property is private and no getter is defined, symfony won't get the value in an object's property, instead an exception will be thrown. However the private property could very well be accessible using the magic __call method. Actually this is very useful to have for Doctrine entities that extend the Doctrine\Common\Persistence\PersistentObject abstract class, which uses the __call method to provide getProperty, setProperty and addProperty functionality.

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