Juan Basso
0e30042f82
Removed the ReflectionClass when filtering results. The Reflection just help in big data.
2011-02-26 18:24:05 -03:00
Juan Basso
d7991aac23
Optimizations related with hasMany and HABTM assoc.
2011-02-26 17:43:46 -03:00
Juan Basso
f9b5d419cd
Fixed wrong attribute name.
2011-02-26 14:06:50 -03:00
Juan Basso
ef9dfe7f26
Some optimizations in queryAssociation.
2011-02-26 14:03:17 -03:00
Juan Basso
cbe8d9ca76
Removed unused var.
2011-02-26 13:45:06 -03:00
Juan Basso
731cc7bb0c
Reverted the change to quote the table name.
2011-02-26 12:39:33 -03:00
Juan Basso
63d700a9d6
Refactored the filterResults again. Now this method not call the callback afterFind when model is Model.
2011-02-26 05:23:59 -03:00
Juan Basso
34b4ff9204
More changes in read.
2011-02-26 04:31:13 -03:00
Juan Basso
ef6632a5ed
Optimizations in generateAssociationQuery and fullTableName.
2011-02-26 04:17:42 -03:00
Juan Basso
164c2a59f3
Optimizating scrubQueryData.
2011-02-25 23:43:15 -03:00
Juan Basso
7efe15393d
Fixed error caused by code optimizations.
2011-02-25 21:11:25 -03:00
Juan Basso
8c7b0f48d8
Checking if has item before fetch virtual fields, avoiding call a function with result (can be large). It save a good time.
2011-02-25 19:55:34 -03:00
Juan Basso
d095f5fe8d
Optimizations in filterResults.
2011-02-25 19:15:40 -03:00
Juan Basso
fea2b5798c
Minor optimizations in DboMysql.
2011-02-25 17:22:15 -03:00
Juan Basso
73b3b65a53
Changed to filterResults be protected instead of private.
2011-02-25 13:26:14 -03:00
Juan Basso
728d9b2a26
Removed the unused var.
2011-02-25 13:05:08 -03:00
Juan Basso
9baeaf8338
Some code optimizations.
2011-02-25 13:01:32 -03:00
Juan Basso
765c094cf1
Extra protection.
2011-02-25 12:54:58 -03:00
Juan Basso
a091302c92
Removed the isInterfaceSupported method. It not make sense in PHP5.
2011-02-25 12:54:57 -03:00
Juan Basso
7f58d2628f
Removing return from constructor.
2011-02-25 12:54:51 -03:00
Juan Basso
9e8fc96bf8
Trimming whitespaces.
2011-02-25 12:54:50 -03:00
Juan Basso
6e14fa8949
Moving attributes from Datasource to DboDataSource.
2011-02-25 12:54:46 -03:00
José Lorenzo Rodríguez
8f62d01701
Fixing lazy loading of database conenction when using prefixes and performing delete operations
2011-02-23 00:51:48 -04:30
José Lorenzo Rodríguez
fc060b5e9c
Starting to lazy load database conenctions again, model read tests fixed
2011-02-23 00:43:56 -04:30
mark_story
e149c411fb
Merge branch '1.3' into merger
...
Conflicts:
cake/VERSION.txt
cake/config/config.php
cake/console/shells/tasks/template.php
cake/dispatcher.php
cake/libs/controller/component.php
cake/libs/controller/components/email.php
cake/libs/controller/scaffold.php
cake/libs/model/datasources/dbo/dbo_mysqli.php
cake/libs/view/helpers/cache.php
cake/libs/view/pages/home.ctp
cake/tests/cases/dispatcher.test.php
cake/tests/cases/libs/model/datasources/dbo/dbo_postgres.test.php
cake/tests/fixtures/datatype_fixture.php
2011-02-05 12:20:09 -05:00
mark_story
71d8e744f1
Fixing case-sensitivity of AS in fields. Tests added. Fixes #1474
2011-01-26 20:58:16 -05:00
José Lorenzo Rodríguez
da152e0e82
Changes to make mysql cast boolean vaules to the native php boolean datatype
2011-01-01 22:07:27 -04:30
mark_story
ef77e60cb0
Removing @subpackage tags, moving contents of @subpackage into @package.
...
Removing duplicate cake.cake in @package tags.
Renaming cake.app -> app
2010-12-24 14:09:57 -05:00
mark_story
a37b3a1598
Adding more documentation to DboSource.
2010-12-22 22:33:17 -05:00
mark_story
b9f0fc0724
Merge branch '1.3' into merger
...
Conflicts:
cake/dispatcher.php
cake/libs/cake_session.php
cake/libs/controller/components/cookie.php
cake/libs/controller/components/email.php
cake/libs/controller/controller.php
cake/libs/controller/scaffold.php
cake/libs/set.php
cake/libs/validation.php
cake/libs/view/view.php
cake/tests/cases/dispatcher.test.php
cake/tests/cases/libs/controller/components/security.test.php
cake/tests/cases/libs/controller/controller.test.php
cake/tests/cases/libs/validation.test.php
cake/tests/cases/libs/view/view.test.php
2010-12-10 22:24:31 -05:00
José Lorenzo Rodríguez
c559b9c22d
Merge remote branch 'origin/2.0' into 2.0
...
Conflicts:
cake/console/templates/skel/config/database.php.default
cake/libs/model/datasources/dbo/dbo_sqlite.php
2010-12-05 20:51:37 -04:30
Juan Basso
c52d5320c8
Replaced the *printf with i18n aliases by i18n aliases with params.
2010-12-04 23:37:13 -02:00
mark_story
8031d33d33
Fixing more E_STRICT notices and adding a type check to DboSource::dropSchema().
2010-12-04 14:37:02 -05:00
mark_story
18fb12c95c
Removing & pass by ref operators as they aren't needed any more.
...
Fixing a bunch of E_STRICT errors.
2010-12-04 14:15:32 -05:00
mark_story
d13759522b
Removing strtolower() calls. You must now call model magic findBy and findAllBy using camelcase forms.
2010-12-04 13:45:42 -05:00
mark_story
466137485d
Removing a duplicated property.
...
Changing is_a() to instanceof as it marginally faster.
Adding a comment to getConnection as it was missing it.
Minor optimization to a regular expression.
2010-12-04 13:28:43 -05:00
José Lorenzo Rodríguez
e167271568
Making more DboSlite tests pass
2010-12-03 14:41:39 -04:30
José Lorenzo Rodríguez
7c4ab886e6
Merge remote branch 'origin/2.0' into feature/2.0/pdo
2010-12-03 14:08:03 -04:30
José Lorenzo Rodríguez
2e04c5260e
Fixing some tests to make them run on sqlite
2010-12-02 00:19:43 -04:30
José Lorenzo Rodríguez
a791687784
Adding try catch for pdo exception on DboSource::_execute
2010-11-28 23:50:18 -04:30
José Lorenzo Rodríguez
372123f15a
Moving common method put from DboMysl into DboSource, this makes more sqlite tests pass
2010-11-28 22:45:56 -04:30
José Lorenzo Rodríguez
41ee035d28
Starting to bring sqlite dbo up to date
2010-11-26 23:46:34 -04:30
mark_story
845edf38e1
Removing core classes using App::import() with an array(). This usage incurs an additional call to App::import().
...
Removing Set from core class imports, as Set is required as part of the framework bootstrapping.
2010-11-25 22:51:30 -05:00
mark_story
15ca2400bc
Fixing issue in DboSource::name() where special characters in column names would not be correctly quoted.
...
Tests added.
Fixes #1264
2010-11-25 06:52:23 -05:00
José Lorenzo Rodríguez
40418de218
Freeing up some memory in dbos after the result set has been completly fetched.
...
Adding dbo_mysql and dbo_postgres to the AllDAtabase testsuite
2010-11-16 23:59:24 -04:30
José Lorenzo Rodríguez
c0f10437ea
Adding a few transactions to speed up a little tests involving fixtures
2010-11-16 23:14:48 -04:30
José Lorenzo Rodríguez
1326707c9d
Implementing transaction nesting, this will allow to open multiple transactions that will only be commited if all transactions succesfully calls commit()
2010-11-16 22:56:23 -04:30
José Lorenzo Rodríguez
a335891eba
mapping lastNumRows to lastAffectedRows as it is not possible to do the first one using PDO
2010-11-16 02:02:08 -04:30
mark_story
18bb5f6b8b
Removing =& operators for construction of objects.
2010-11-12 23:05:44 -05:00
José Lorenzo Rodríguez
47c6132b24
cleaning up some tests, adding missing parameters in DboSource to match declaration on DataSource
2010-11-09 01:25:05 -04:30