Example:
Because he just wanted a one-night-stand, he told the girl he had a girlfriend, to make sure the girl [...]
Meaning that the guy told the girl he had a girlfriend so that the girl understood that he just wanted to play. So that she wouldn't expect a long-term relationship.
Is there an idiom for that?