Victor Bocharsky Victor Bocharsky - 1 year ago 150
YAML Question

How to add comment for table in yaml mapping format with Doctrine2

I need to add comment for whole table, not only for column, How can I do it with

mapping format. I try next definition:

type: entity
table: users
comment: 'Users table'
comment: 'Users table'

But it not work for table comment.

Answer Source

According to the annotations reference, it says only the column has an options attribute for comments. And that too is vendor specific. You need to check if your db supports it.


Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download