1
0
mirror of synced 2024-12-14 07:06:04 +03:00
doctrine2/manual/docs/Getting started - Setting table definition - Table and class naming.php

10 lines
471 B
PHP

Doctrine automatically creates table names from the record class names. For this reason, it is recommended to name your record classes using the following rules:
<ul>
<li>Use CamelCase naming</li>
<li>Underscores are allowed</li>
<li>The first letter must be capitalized</li>
</ul>
Example. My_PerfectClass
<br />
If you need to use a different naming schema, you can override this using the setTableName() method in the setTableDefinition() method.