Youth justices have told two York parents to take special lessons in bringing up children.
The three-month joint parenting order against the mother and father of a 15-year-old boy from the west part of York is thought to be the first in the city.
The boy's older brother is currently serving an eight-month detention and training order after he admitted offences including witness intimidation in an Acomb pizza take-away.
The parents' order is aimed at stopping the younger boy reoffending.
He pleaded guilty to intimidating the same witness out of "misguided loyalty" to his brother.
The prosecution accepted he did not intend to pervert the course of justice.
He also pleaded guilty to breaching a conditional discharge for being drunk and disorderly following an incident at the take-away, Pizza Planet, Bramham Road, in March.
It has now closed after youths subjected staff to a series of racial attacks and other incidents over many weeks.
Justices gave the 15-year-old boy a three-month Action Plan including 10 hours at an attendance centre and sessions on alcohol abuse, anger management, victim awareness and improving his social and moral skills.
They told the parents to work with the Youth Offending Team on ways of stopping him reoffending.
Prosecutor Colette Dixon said in a "prolonged" incident, the younger brother told customers at the take-away not to buy pizzas because the witness had "grassed on his brother".
He kicked and punched the counter, repeatedly making the same allegation, and went in and out of the fast food restaurant.
For the boy, Jackie Knights said: "The whole incident arose out of misguided loyalty towards his brother. He was clearly trying to protect his brother."
His parents were trying to mend his ways his mother by talking to him and his father by repeatedly telling him what he should not do.
She urged the justices not to make the parenting order on the grounds that the mother was working voluntarily with the Youth Offending Team and she was the one who had most contact with the boy.
Comments: Our rules
We want our comments to be a lively and valuable part of our community - a place where readers can debate and engage with the most important local issues. The ability to comment on our stories is a privilege, not a right, however, and that privilege may be withdrawn if it is abused or misused.
Please report any comments that break our rules.
Read the rules hereComments are closed on this article