MR Repository Abstract
Most basic repository mapper that maps data from the database to an application's models and also from the models to the database.
A repository mapper DOES NOT need to extend this class as this class might be too simplistic for your needs.
In the end, all database interactions that take place between your models and the database should be stored in this class.
Located in /repository/abstract.php (line 62)
The table that this repository mapper is primarily associated with
Delete a model
The model's ID property is required, but after the delete, the ID property will be set to null.
Get a model based on conditions
Get a new instance of the model that the repository uses
Get a mr_repository_recordset based on conditions, etc
Use this to iterate over your models.
Get the table that this repository mapper uses
Warning: this method WILL set the table property if it's not set already.
The name of the table that the repository uses
Convert the model to a record
If the default implementation doesn't work, it's 100% acceptable to override this method.
Convert a record to a model
If the default implementation doesn't work, it's 100% acceptable to override this method.
Save a model
Common reason for needing to override this method is perhaps to update a time modified timestamp and then calling this parent method.
Set the table that this repository mapper uses. Generally you do not want to use this.
Documentation generated on Thu, 28 Jun 2012 16:33:46 -0700 by phpDocumentor 1.4.3