/** * @TODO das hier geht noch nicht * Das Problem ist, dass ich nicht weiß ,wie ich Abfrage ob User oder eine Subklasse von User schon von doctrine geladen wird (dann wollen wir nicht automatisch installieren) * */ public static function installEntity(\Psc\Doctrine\Object $object) { $em = $object->getEM(); throw new Exception('Dies hier muss noch gebaut werden'); if (Config::get('cms.installEntities') == TRUE) { $code = ' namespace Entities; /** * @Entity * @Table(name="users") */ class User extends \\Psc\\CMS\\User { }'; } }