Managed to sort it out. Was due to my incorrect implementation of getters and setters, I think.