SANTA ANA – A 60-year-old man who with the help of his son beat a Huntington Beach police officer during a bicyle stop has been sentenced to six years in prison.

The policeman’s daughter had been on a ride-along with her father and saw the incident, which left the officer unconscious.

Darryl Keith Headrick on Friday pleaded guilty to a felony count of assault and a misdemeanor count of resisting a police officer, while also admitting to a sentencing enhancement for inflicting great bodily injury.

According to prosecutors, the officer stopped Bryce Headrick, who was also on a bike, for a possible alcohol-related violation shortly before 11:30 p.m. on Feb. 9, 2016. While the officer was talking to Bryce Headrick, the father came up behind the officer and attacked him, knocking him to the ground.

Both the father and son punched and kicked the officer in his head and his body while the officer was on the ground, prosecutors said. The officer lost consciousness at one point, and both Darryl and Bryce Headrick fled.

The officer was taken to a hospital to be treated for a concussion, among other injuries.

The father and son were found and arrested by other officers. The father was located near the crime scene, and the son was tracked down several hours later.

Last year, Bryce Headrick pleaded guilty to the same assault and resisting charges as his father, and was sentenced to seven years in prison.

At the sentencings, the officer told the court that the attack was particularly hard on his daughter, who had been on a ride-along with her father the day of the traffic stop, and had witnessed the two men beat him, according to the Orange County District Attorney’s Office.

Huntington Beach police officials, shortly after the initial arrests of the two men, had noted that a 21-year-old woman who was on a ride-along with the officer had yelled at the two men to stop attacking him, and other people in the neighborhood had described hearing a blood-curdling shriek. Police did not specify that it was the officer’s daughter.

The officer remains on active duty with the department.