Commit graph

94 commits

Author SHA1 Message Date
phpnut
ba6ad9d3c1 Adding fix for #1965
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4382 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-02-01 05:18:25 +00:00
phpnut
67ee75dba4 Correcting doc comments for #1852
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4376 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-02-01 03:02:08 +00:00
nate
0698b9cdf6 Updating DboSource with new query generator implementation, and updating DboSource tests
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4368 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-01-31 23:25:05 +00:00
nate
1df76850c3 Enabling join models for all DBOs
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4342 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-01-28 01:53:35 +00:00
nate
8307f2bc85 Updating Model for testing compatiblity
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4339 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-01-27 17:45:26 +00:00
phpnut
ea2c7819f3 Fixing error introduced in [4311] the DboSource::limit() does not return results as expected.
When column is tinyint(1) is $limit = LIMIT tinyint(1).
All others are similar result with $limit = LIMIT [column type][#]

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4328 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-01-24 10:47:12 +00:00
nate
d1e375f5dd Clearing validation errors on Model::create() (Ticket #1960)
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4316 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-01-22 08:22:10 +00:00
nate
51d384932f Adding Model::isUnique() for simplified checking of unique fields/values
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4313 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-01-22 08:09:17 +00:00
nate
3f1154c8cf Adding fix for Ticket #1974
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4308 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-01-20 20:59:38 +00:00
nate
06f83ea86d Moving normalizeList() (basics) to Set::normalize()
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4307 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-01-20 20:50:57 +00:00
nate
6dcdad1a2c Adding back 'default' key to table description, and fixing Model::create() to not include empty default values
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4297 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-01-16 12:53:39 +00:00
gwoo
790689fc32 moving data conversion for xml from Model::set() to RequestHandler::startup();
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4277 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-01-10 21:20:06 +00:00
gwoo
7019ee7d26 adding empty $config to Configure::__writeConfig, update to model for multiple datasources with a table prefix, added option to wrap xml with <data> to wrap the model elements when using Model::set()
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4276 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-01-10 11:15:43 +00:00
dho
c7f045c832 Fixing typos
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4263 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-01-06 08:41:48 +00:00
nate
bfeaab795a Adding validation fix for Ticket #1850, and adding warning messages for Model::invalidFields() and Model::validates()
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4260 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-01-06 04:58:24 +00:00
phpnut
0ab73bb5fa "Adding a second param to bindModel and unbindModel to allow
turning off the auto resetting of the associations.
By default associations are always reset to the orignal models values"

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4222 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-12-28 04:02:38 +00:00
phpnut
a4ca03ed69 Fixing magic method names
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4211 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-12-26 16:17:37 +00:00
nate
0cea0a6ff5 Integrating new Validation class with Model
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4193 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-12-25 06:53:19 +00:00
nate
a420c70c91 Optimizing findCount() query, and adding beforeFind() reference fix for Ticket #1693
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4165 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-12-23 20:36:00 +00:00
nate
19798c71b3 Adding 1.2 fix for Ticket #1797
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4132 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-12-23 00:17:52 +00:00
nate
982381dc74 Binding additional Behavior callbacks to Model
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4108 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-12-19 19:26:02 +00:00
nate
b5face3516 Changing Model::del to check for existence of itself before allowing deletes
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4099 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-12-13 04:04:15 +00:00
nate
37281be9de Checking if model exists when setting 'created' field, to enable use with custom IDs
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4094 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-12-12 22:06:22 +00:00
dho
cc9b30ad2f Typo (ticket #1738)
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4088 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-12-08 17:37:54 +00:00
gwoo
ecb2b8c786 fix for generateList
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4065 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-12-04 06:59:56 +00:00
phpnut
e935b51b8d Adding fix for Ticket #1699
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3991 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-11-27 05:57:53 +00:00
phpnut
fd65f226e6 Adding fix for Ticket #1626.
This fixes deleting of associated hasOne and hasMany when using bindModel before Model::delete()

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3941 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-11-23 11:31:59 +00:00
phpnut
2e0ec28018 Fix for Ticket #1689.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3940 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-11-23 11:05:47 +00:00
phpnut
87af38c7dc Merging fixes from [3908] for Ticket #1689
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3909 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-11-22 20:25:13 +00:00
phpnut
b76c2179e1 Merged fixes from [3906]
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3907 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-11-22 20:08:53 +00:00
phpnut
883ecc1cd0 Merged fix for Ticket #1675
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3903 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-11-22 19:36:59 +00:00
nate
099144bcbd Changing Set interface to act like NeatArray, disabling Model::cacheQueries by default, and removing NeatArray usage in Model
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3888 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-11-21 22:40:30 +00:00
phpnut
c773b64bfe Starting to refactor model loading
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3885 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-11-21 21:48:05 +00:00
nate
075891f1f9 Refactoring code and updating method references
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3841 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-11-08 03:28:24 +00:00
phpnut
b42373467f Adding fix for scaffold when using an alias association, mostly found on self joined models, or models that have multiple associations to the same model
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3820 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-11-03 21:01:24 +00:00
gwoo
8fef7cf4ba 1.2: fix for groupPath recursive in generateList
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3819 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-11-03 19:49:32 +00:00
nate
50da950aba Fixing Model::findCount() for ADODB (Ticket #1613)
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3802 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-11-02 14:44:44 +00:00
phpnut
dedb404423 Merging fixes for associations to 1.1.x.x branch
Removed commented code from Model::_ _generateAssociation() in 1.2.x.x

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3796 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-11-01 20:31:45 +00:00
nate
add6e512e7 Adding Model::__wakeup() (Ticket #1582)
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3754 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-10-28 00:42:51 +00:00
nate
0bab7de4d6 Updating docblock for Model::create
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3753 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-10-27 22:35:40 +00:00
nate
d22e84af09 Fixing code formatting
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3752 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-10-27 21:42:29 +00:00
nate
45f27cda1c Refactoring Model
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3748 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-10-27 18:14:35 +00:00
nate
2046eed40d Refactoring DboSource
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3740 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-10-25 13:27:32 +00:00
gwoo
42676402d3 fix for #1572, $this->id set to lastInsertId after save
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3739 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-10-25 12:07:16 +00:00
nate
2993a8d412 Adding Router path fixes for error pages (Ticket #1566), fixing code formatting (Dispatcher), and adding API enhancements for model behaviors
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3727 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-10-20 17:24:37 +00:00
gwoo
d485edd1ab adding fix for generate list to 1.2
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3703 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-10-18 01:07:09 +00:00
nate
3a03674c76 Moving DataSource::getFieldValue to Set::extract
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3667 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-10-14 17:19:03 +00:00
nate
d66ca81671 Adding validation logic fix (Ticket #1518)
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3628 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-10-10 22:29:13 +00:00
nate
d412939912 Refactoring Model::save and teaching Model to eat XML
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3620 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-10-09 22:00:22 +00:00
gwoo
46d9b86b76 adding fix for #1465 and #1469
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3581 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-09-28 16:44:02 +00:00