Schema in Symfony/Doctrine

B a s i c

New Member
\[code\]# config/doctrine/schema.ymlCategory: actAs: { Timestampable: ~ } columns: name: { type: string(255), notnull: true, unique: true }Project: actAs: { Timestampable: ~ } columns: category_id: { type: integer, notnull: true } title: { type: string(255) } description: { type: string(4000), notnull: true } relations: Category: { onDelete: CASCADE, local: category_id, foreign: id, foreignAlias: Projects }\[/code\]Here, If we changelocal: category_id 'to' foreign_key: category_id and foreign: id 'to' references: idThen will it make greater sense or the Original One does?I'm mean creators of Symfony are really experienced [Jonathan Wage and Fabien Potencier] so they must be following some DB Design that I maynot know .Just curious to know If someone knows why it is, the Way it is in Symfony?
 
Back
Top