Commit graph

330 commits

Author SHA1 Message Date
nate
3b0a6bf5d4 Fixing 'ambiguous column' bug in Model::findCount()
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4592 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-03-05 17:47:16 +00:00
phpnut
fd3e9fe9f8 Adding fix for Ticket #2198
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4590 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-03-05 14:48:49 +00:00
phpnut
a9c128b0ec Adding fix for Ticket #2101.
Changed Helper::loadConfig() to accept a param with the name of the file to load

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4589 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-03-05 13:48:21 +00:00
phpnut
0e44a16fbd Adding fix for Ticket #2161
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4582 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-03-04 13:00:50 +00:00
phpnut
41aff9c2f6 Adding fix for Ticket #2055.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4576 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-03-04 09:33:21 +00:00
phpnut
55a66a9091 Adding fix for Ticket #2084
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4574 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-03-04 05:19:30 +00:00
phpnut
b3b1c80a69 Adding patch from Ticket #2176, extracts the sequence name from the default value for the primary key and returns it's last value
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4572 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-03-04 04:54:48 +00:00
phpnut
82d0c2e742 Adding fix from Ticket #2074
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4569 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-03-04 04:05:57 +00:00
nate
7c9e71e72d Refactoring Model::getColumnType() and Model::getColumnTypes()
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4567 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-03-03 15:18:45 +00:00
phpnut
ff434df4e5 Adding fix for #1815
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4534 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-02-18 13:17:28 +00:00
phpnut
a324348be2 Adding fix for #2068.
Renaming Translate to TranslateBehavior.
Added empty class methods to TranslateBehavior.

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4533 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-02-18 13:10:11 +00:00
dho
076a5dbd63 Renaming $__transactionStarted to $_transactionStarted (ticket #2141)
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4527 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-02-17 08:28:09 +00:00
dho
34c63427fb Renaming $__sources to $_sources (ticket #2140)
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4526 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-02-17 07:31:29 +00:00
phpnut
46c5c36fcb Moving Translate class to the behaviors directory.
Moving i18n sql to app/config/sql

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4525 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-02-17 07:07:57 +00:00
nate
a633a7392a Adding key fix for Model::create() (Ticket #2106), and adding warning message for model load failures
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4522 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-02-15 18:45:47 +00:00
nate
64bbd74c85 Refactoring ACL and tree code for query optimization changes
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4521 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-02-15 06:09:20 +00:00
nate
6989f80376 Fixing the display of SQL errors when DEBUG > 0
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4520 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-02-15 03:03:17 +00:00
phpnut
074598a96f Adding the DB2 driver submitted by Daniel Krook
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4519 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-02-14 20:41:06 +00:00
nate
c78b777db7 Optimizing ACL node querying
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4517 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-02-14 07:26:42 +00:00
nate
2a954b5fbf Refactoring ACL system to require less model code
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4502 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-02-10 22:59:08 +00:00
nate
c87b48e034 Refactoring AclBehavior
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4501 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-02-10 20:28:22 +00:00
nate
96abdcb619 Fixing ACL node creation for multiple insertions
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4494 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-02-10 04:15:25 +00:00
nate
b50b478f8a Fixing permissions setting for ACL
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4493 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-02-09 21:26:09 +00:00
nate
45bff19372 Loading additional ACL model classes in AclBehavior
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4492 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-02-09 19:13:38 +00:00
phpnut
de3d0bb193 Adding define ACL_DATABASE
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4491 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-02-09 18:33:32 +00:00
phpnut
115037e815 Adding missing headers
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4490 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-02-09 18:18:01 +00:00
nate
30134cbd9e Importing new ACL system
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4487 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-02-09 08:13:13 +00:00
nate
a7653e4d80 Changing param order in Model::updateAll() so it makes more sense
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4479 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-02-08 18:36:26 +00:00
nate
fbc0ea77b7 Fixing $conditions === true in DboSource
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4478 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-02-08 18:13:14 +00:00
phpnut
af4bacb960 Reverting changes made in last commit
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4477 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-02-08 17:58:19 +00:00
nate
1e4ce0d35d Implementing Model::deleteAll()
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4476 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-02-08 17:50:47 +00:00
nate
15f7509171 Refactoring set() method into Object, and adding $conditiions === true translation in DboSource
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4475 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-02-08 17:33:59 +00:00
nate
0baab3b06f Updating Behavior class def with new callback param
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4466 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-02-07 00:37:49 +00:00
nate
76548b0aad Refactoring Model::save() and adding $created parameter to afterSave()
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4465 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-02-07 00:36:19 +00:00
dho
24d65cafbc Fixing typo (ticket #2057)
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4452 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-02-05 12:26:31 +00:00
phpnut
0c490af5b1 Adding fix for #2051
Adding additional methods to the ClassRegistry to set mappings to class names.
Added ClassRegistry::map() in the model to set mappings where needed

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4449 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-02-05 04:53:31 +00:00
phpnut
f0eac2527c Adding fix for #2047
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4437 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-02-04 02:46:12 +00:00
nate
75eea8950c Disabling Model::loadInfo() for models that do not use tables
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4426 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-02-03 17:31:42 +00:00
nate
46aa081d5c Adding SQL Server column aliasing fix for hasMany/HABTM associations (Ticket #1931)
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4416 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-02-02 20:14:03 +00:00
phpnut
b64e27d9fe Added missing return in Model::invalidFields()
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4413 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-02-02 18:07:56 +00:00
phpnut
cca419c124 Adding fix for #1936
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4412 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-02-02 18:05:48 +00:00
nate
b4cc0dfd96 Adding numeric value quoting fix for DboSource (Ticket #1927)
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4411 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-02-02 15:21:51 +00:00
phpnut
a8a91e35be Correcting all headers in the files
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4407 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-02-02 10:39:45 +00:00
phpnut
9b28c2ed27 Adding fix for #2021
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4403 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-02-02 04:39:48 +00:00
nate
75d8f42684 Adding magic method fix for null query values (Ticket #1999), and adding PostgreSQL boolean quoting patch (Ticket #1788)
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4396 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-02-02 02:21:44 +00:00
gwoo
8f7add9c29 adding patch to dbo_postgres, #1828
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4395 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-02-02 00:06:26 +00:00
phpnut
ce033247ed Adding patch from #1844
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4394 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-02-01 23:58:02 +00:00
phpnut
03d15ff892 Adding fix for #1928
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4393 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-02-01 23:43:56 +00:00
phpnut
67e582cc2f Fixed bad merge on Model::bindModel().
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4390 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-02-01 18:45:38 +00:00
phpnut
a83f2bf470 Adding fix for #1946.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4389 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-02-01 18:37:42 +00:00