Rubén, thank you.
In the marriage records I’ve seen, the child ends up with the surname of the person, so would they be considered adopted?
A somewhat related situation was the time when Bishop Lorenzana of Mexico sent a number of orphans to Colonial California. They were, of course, wards of the orphanage, but once they arrived in California, they had all been given the Bishop’s name, Lorenzana. I have a friend who descends from one of these children.