editing models for php