Implemented PutUnits using doctrine