"Love, Simon" star Nick Robinson has just joined the FX limited series "A Teacher."

He'll play Eric, an all-American senior, who has an affair with his teacher, Claire (Kate Mara). Mara, who was cast first, is also an executive producer on the series, which is set at a suburban Texas high school.

It's based on Hannah Fidell’s 2013 Sundance feature of the same name. Fidell will write the adaptation as well as direct and executive produce.

"Working with FX – truly the home of all my favorite shows – on 'A Teacher' is a dream come true," said Fidell. "I couldn’t ask for a more perfect partner who, from day one, has understood and embraced the inherent complexities and nuance required for such subject matter.”

Robinson will make his Broadway debut in the Aaron Sorkin adaptation of "To Kill A Mockingbird." He'll replace Will Pullen as Jem Finch in November.

Mara received an Emmy nomination for her role on "House of Cards." Her recent credits include FX series "Pose" and the films "Chappaquiddick" and "Megan Leavey."

[Via Deadline]