1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-28 17:52:43 +01:00
phorge-phorge/src/infrastructure/storage/lisk
epriestley 9d474452f9 Make nonscalar field saves raise a more useful exception from LiskDAO
Summary:
If you do something like this:

  // Missing $user->getPHID()!
  $object->setUserPHID($user)->save();

...you get a very unhelpful exception:

  Expected a scalar or null for %s conversion. Query: %s

This doesn't give you any hints about what's wrong. Instead, provide a more useful exception:

  Unable to insert or update object of class DifferentialRevision, field 'title' has a nonscalar value.

Test Plan: {F87614}

Reviewers: hach-que, btrahan

Reviewed By: btrahan

CC: aran

Differential Revision: https://secure.phabricator.com/D7725
2013-12-06 15:47:40 -08:00
..
__tests__ Implement a more compact, general database-backed key-value cache 2012-12-21 14:17:56 -08:00
LiskDAO.php Make nonscalar field saves raise a more useful exception from LiskDAO 2013-12-06 15:47:40 -08:00
LiskDAOSet.php Purge loadRelativeEdges 2013-09-13 11:40:52 -07:00
LiskEphemeralObjectException.php Delete license headers from files 2012-11-05 11:16:51 -08:00
LiskMigrationIterator.php Delete license headers from files 2012-11-05 11:16:51 -08:00
LiskRawMigrationIterator.php Add LiskRawMigrationIterator 2013-06-21 12:55:07 -07:00
PhabricatorDataNotAttachedException.php Use application PHIDs in Releeph, plus more 2013-07-22 12:17:32 -07:00
PhabricatorLiskDAO.php Purge loadRelativeEdges 2013-09-13 11:40:52 -07:00