yml association documentation has typing error #5444

Closed
opened 2026-01-22 15:07:57 +01:00 by admin · 1 comment
Owner

Originally created by @Zebercet on GitHub (Mar 6, 2017).

Originally assigned to: @Ocramius on GitHub.

One-To-Many, Bidirectional documentation is like that:

Product:
  type: entity
  oneToMany:
    features:
      targetEntity: Feature
      mappedBy: product
Feature:
  type: entity
  manyToOne:
    product:
      targetEntity: Product
      inversedBy: features
      joinColumn:
        name: product_id
        referencedColumnName: id

but association keys have to start with upper case. "oneToMany" has to be "OneToMany"

Originally created by @Zebercet on GitHub (Mar 6, 2017). Originally assigned to: @Ocramius on GitHub. One-To-Many, Bidirectional documentation is like that: ``` Product: type: entity oneToMany: features: targetEntity: Feature mappedBy: product Feature: type: entity manyToOne: product: targetEntity: Product inversedBy: features joinColumn: name: product_id referencedColumnName: id ``` but association keys have to start with upper case. "oneToMany" has to be "OneToMany"
admin added the BugDocumentationInvalid labels 2026-01-22 15:07:57 +01:00
admin closed this issue 2026-01-22 15:07:57 +01:00
Author
Owner

@Ocramius commented on GitHub (Mar 6, 2017):

Closing as invalid, see https://github.com/doctrine/doctrine2/blob/v2.5.6/lib/Doctrine/ORM/Mapping/Driver/YamlDriver.php#L401

@Ocramius commented on GitHub (Mar 6, 2017): Closing as invalid, see https://github.com/doctrine/doctrine2/blob/v2.5.6/lib/Doctrine/ORM/Mapping/Driver/YamlDriver.php#L401
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#5444