php - Are there no class aliases in Doctrine2? -



php - Are there no class aliases in Doctrine2? -

something this:

user: targetentity: user inversedby: posts joincolumn: name: user_id referencedcolumnname: id deleter: targetentity: user joincolumn: name: deleter_id referencedcolumnname: id

above have 2 relationships class user, wondering if targetentity: deleter user

so want deleters users? might go single table inheritance in case. you'll need add together discriminator column.

another mutual approach modeling roles user may have in application have user_type table or similar. define many-to-many listing out roles each user has. times these tied privileges , have found hierarchical relationships between said roles, gross generalization.

php orm doctrine2

Comments

Popular posts from this blog

How do I check if an insert was successful with MySQLdb in Python? -

delphi - blogger via idHTTP : error 400 bad request -

postgresql - ERROR: operator is not unique: unknown + unknown -