added generic ^model class for doctrine