Stop in for a cup of coffee

Ok. Wise dudes, how to stop a 3yr old with a biting and hitting problem when she doesn't do it when her parents (us) are around? Go
let her hear you telling the "victim" that you want to be notified when these incidents occur so you can punish her for it - and then actually punish her when it happens