Oops... algo salió mal!

Trying to get property 'discipline_id' of non-object