Created
April 26, 2012 01:52
-
-
Save jbourassa/2495147 to your computer and use it in GitHub Desktop.
Attempt to share entities in Doctrine2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// This is the namespace `app:` would resolve to. | |
namespace AppOne; | |
/** | |
* @Entity(repositoryClass="SomeClass...") | |
* @Table(name="user") | |
*/ | |
class User extends Shared\User { | |
// Extend the class here if need be | |
} | |
/** | |
* @Entity(repositoryClass="SomeOtherClass...") | |
* @Table(name="address") | |
*/ | |
class Address extends Shared\Address { | |
// Extend the class here if need be | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment