Season Four In "Pandora", we find out that Lanie had taken Castle's daughter Alexis in as her intern. She and Detective Javier Esposito had a 'secret' relationship for a while, although in reality most of the other detectives knew about it before they even mentioned it.