I have a UK passport, and a Spanish passport. Spain doesn’t recognise dual nationality so I had to declare that I was renouncing my UK citizenship when I applied for my Spanish passport. However I was advised off the record by a Spanish consulate employee that in practice many people keep both without any problems. I’m flying to Spain soon and gave my UK passport details to the airline when I checked in, but I’d like to use my Spanish passport at immigration when entering and leaving Spain. Do the immigration authorities cross check their records with the airline and will they detect that I’ve used my UK passport to check in and board the flight?