Add a new findById DAO method.
authorAnthony Nemirovsky <anemirovsky@giantrabbit.com>
Thu, 13 Nov 2014 18:33:02 +0000 (10:33 -0800)
committerAnthony Nemirovsky <anemirovsky@giantrabbit.com>
Thu, 13 Nov 2014 18:33:02 +0000 (10:33 -0800)
commit47ff2df73a4bf22b91f7e5fa96d05bbd26a109d7
tree8fe3bed051ff7e6357ba7ed1c93a2cbdc725b61f
parentf1929672aa2cfe9593854e6b3b5f77118a489a9d
Add a new findById DAO method.

We have found it very useful to have this simple function, which retrieves a
DAO object of a specific type by ID or throws an exception if one is not
found.

This can be called by using something like
CRM_Contribute_BAO_Contribution::findById(35), which will retrieve a
Contribution Object for that id, if it exists.
CRM/Core/DAO.php