SALT LAKE CITY (AP) — Officials say a substitute teacher in Utah has been fired after berating a fifth-grade student who said he was thankful for being adopted by his two dads.

The boy’s classmates said the teacher told him, “that’s nothing to be thankful for” and lectured the 30 kids in the class about her views on homosexuality. She said that “two men living together is a sin” and “homosexuality is wrong.”

Three girls asked the teacher to stop and eventually walked out of the room to get the principal, and the substitute was escorted from the building, the Salt Lake Tribune reported.

The Salt Lake Tribune reports staffing company Kelly Services contracts with the Alpine School District south of Salt Lake City and said in a statement Monday the unidentified woman was terminated after an investigation into her comments.

One of the dads, Louis van Amstel, said he appreciates the three girls stepping up and the school’s quick response. But he wonders how the substitute got in a classroom in the first place and wants to make sure she never comes back again — at the boy’s school or anywhere in Utah.

“It’s absolutely ridiculous and horrible what she did,” van Amstel said. “We were livid. It’s 2019 and this is a public school.”

The boy told his dads that he understood what the substitute was saying, but said he didn’t speak up because he’s had two failed adoptions before and didn’t want his dads to rethink their decision, with his final court hearing coming up on Dec. 19.

“This situation really hurt him. This person really hurt us,” said van Amstel, a former dancer on “Dancing with the Stars.”

The incident happened last month at Deerfield Elementary School in Cedar Hills, south of Salt Lake City. A spokesman for Alpine School District, David Stephenson, said he couldn’t speak in detail about a personnel issue but “appropriate action has been taken.” He also praised the girls who spoke up for their classmate.

“Fellow students saw a need, and they were able to offer support,” Stephenson said. “It’s awesome what happened as far as those girls coming forward.”

The district contracts with the staffing company Kelly Services to hire substitutes.

A few days after the incident, the family’s neighbors decorated their house with paper hearts that said, “We love you” and “We support you.”

Please be aware the Herald Journal does not endorse, and is not responsible for alleged employment offers in the comments.