A proof of this fact is given in Proposition 3.1 of
Alexandru Stanculescu, Constructing model categories with prescribed fibrant objects, arXiv:1208arXiv:1208.6005.6005
He attributes this result to an earlier paper from the 80's by Fritsch and Latch.