setInheritanceType(Doctrine::INHERITANCETYPE_JOINED, array( 'discriminatorColumn' => 'dtype', 'discriminatorMap' => array( 'user' => 'ForumUser', 'admin' => 'ForumAdministrator') )); $class->setSubclasses(array('ForumAdministrator')); // the discriminator column $class->mapColumn('dtype', 'string', 50); // column mapping $class->mapColumn('id', 'integer', 4, array( 'primary' => true, 'autoincrement' => true)); $class->mapColumn('username', 'string', 50); } /* public function getUsername() { return $this->rawGet('username') . "!"; } */ }