Fixed setModel method in BaseRepository()