Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Throw a full-fledged exception on invalid call #11308

Merged
merged 1 commit into from
Feb 26, 2024

Commits on Feb 25, 2024

  1. Throw a full-fledged exception on invalid call

    In 2.x, getAssociationMappedByTargetField() used to return null when
    called with the owning side of an association.
    That was undocumented and wrong because the phpdoc advertises a string
    as a return type.
    
    In 6ce0cf4, I wrongly assumed that
    nobody would be calling this method with the owning side of an
    association.
    
    Let us throw a full fledged exception and advertise the proper way of
    avoiding this situation.
    
    Closes doctrine#11250
    greg0ire committed Feb 25, 2024
    Configuration menu
    Copy the full SHA
    3f7a333 View commit details
    Browse the repository at this point in the history