Skip to content
  • Aaron Wells's avatar
    Make get_record warn instead of dying, by default · 59b55846
    Aaron Wells authored
    Bug 1515929: Usually when we use get_record(), we're
    querying against a record that has a uniqueness constraint
    guaranteeing that it is unique, in which case the PHP
    code that dies on non-uniqueness is redundant.
    
    In the remaining cases, we're dealing with records
    that for some reason can't have a uniqueness constraint,
    and the dying just causes the site to entirely stop
    working, when it would be more useful to have it continue
    to work but throw a warning message to the logs.
    
    behatnotneeded: Covered by existing test cases
    
    Change-Id: I264f72e3a8904293d78909410f68b29f2c78db3c
    59b55846