Training moments occur when both parents and children do their jobs. The parent's job is to make the rule. The child's job is to break the rule. The parent then corrects and disciplines. The child breaks the rule again, and the parent manages the consequences and empathy that then turn the rule into reality and internal structure for the child.
Henry Cloud, John Townsend (2009). “Boundaries with Kids: When to Say Yes, How to Say No”, p.151, Harper Collins