DDC-257: Typo: @UniqueCosntraint and "yml" instead of XML in docs #317

Closed
opened 2026-01-22 12:34:33 +01:00 by admin · 3 comments
Owner

Originally created by @doctrinebot on GitHub (Jan 15, 2010).

Originally assigned to: @beberlei on GitHub.

Jira issue originally created by user petros:

http://www.doctrine-project.org/downloads/pdfs/manual-2-0-en.pdf

"UniqueCosntraint" is written instead of UniqueConstraint

on page 86:

"The XML mapping document of a class is loaded on-demand the first time it is requested and
subsequently stored in the metadata cache. In order to work, this requires certain
conventions:
• Each entity/mapped superclass must get its own dedicated XML mapping document.
• The name of the mapping document must consist of the fully qualified name of the
class, where namespace separators are replaced by dots (.).
• All mapping documents should get the extension ".dcm.xml" to identify it as a
Doctrine mapping file. This is more of a convention and you are not forced to do
this. You can change the file extension easily enough.

<?php $driver->setFileExtension('.yml'); " it should be ".xml" I think, and copypaste was the source of problem.
Originally created by @doctrinebot on GitHub (Jan 15, 2010). Originally assigned to: @beberlei on GitHub. Jira issue originally created by user petros: http://www.doctrine-project.org/downloads/pdfs/manual-2-0-en.pdf "UniqueCosntraint" is written instead of UniqueConstraint on page 86: "The XML mapping document of a class is loaded on-demand the first time it is requested and subsequently stored in the metadata cache. In order to work, this requires certain conventions: • Each entity/mapped superclass must get its own dedicated XML mapping document. • The name of the mapping document must consist of the fully qualified name of the class, where namespace separators are replaced by dots (.). • All mapping documents should get the extension ".dcm.xml" to identify it as a Doctrine mapping file. This is more of a convention and you are not forced to do this. You can change the file extension easily enough. <?php $driver->setFileExtension('.yml'); " it should be ".xml" I think, and copypaste was the source of problem.
admin added the Bug label 2026-01-22 12:34:33 +01:00
admin closed this issue 2026-01-22 12:34:34 +01:00
Author
Owner

@doctrinebot commented on GitHub (Jan 15, 2010):

Comment created by petros:

found version in the pdf

@doctrinebot commented on GitHub (Jan 15, 2010): Comment created by petros: found version in the pdf
Author
Owner

@doctrinebot commented on GitHub (Jan 31, 2010):

Comment created by @beberlei:

Fixed

@doctrinebot commented on GitHub (Jan 31, 2010): Comment created by @beberlei: Fixed
Author
Owner

@doctrinebot commented on GitHub (Jan 31, 2010):

Issue was closed with resolution "Fixed"

@doctrinebot commented on GitHub (Jan 31, 2010): Issue was closed with resolution "Fixed"
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#317