http://www.britishairways.com/en-gb/...-avios/flights
From the table at the bottom of the page I believe:
EI metal booked under an EI flight number = avios only
BA metal booked under EI flight number = avios only
EI metal booked under a BA flight number = TPs and avios
For your example you earn avios only.