php enumerable collection and model