romanb
539853d5e4
refactorings
2008-05-24 19:11:33 +00:00
guilhermeblanco
4e99dcb51f
Fixes for test case in DQL
2008-05-24 18:51:47 +00:00
romanb
0ad6aee389
Merged DQL parser branch to trunk.
2008-05-24 18:18:37 +00:00
romanb
7b711ae70e
refactorings. merged hydration bugfix from 0.11.
2008-05-24 17:10:45 +00:00
romanb
74ce82bd50
Initial HYDRATE_SINGLE_SCALAR implementation & test.
2008-05-18 16:21:55 +00:00
romanb
d0ea5705d0
Initial support for scalar hydration (HYDRATE_SCALAR). EntityPersisters born.
2008-05-17 20:04:56 +00:00
romanb
613d08f9ca
Merged dbal bugfixes from 0.11.
2008-05-17 12:22:24 +00:00
romanb
7ffd4140cd
Doctrine_Record renamed. Hydration refactored. Other refactorings.
2008-05-13 21:20:34 +00:00
romanb
ad0d24ff57
Fixed #1023 . Thanks for ticket & patch.
2008-05-08 21:04:34 +00:00
romanb
0dd856784c
Continued work on new hydration.
2008-05-08 14:17:35 +00:00
romanb
f92773fa1c
Added another hydration test.
2008-05-06 21:03:31 +00:00
romanb
ab65ad5b4d
Refactorings. Started with new hydrator for 2.0.
2008-05-06 13:41:22 +00:00
romanb
ff11220961
minor refactorings & cleanups.
2008-05-01 09:50:23 +00:00
romanb
24872ef65f
Merged all identity maps into one in the unitofwork. identity map now properly works with hierarchies.
2008-05-01 09:41:47 +00:00
romanb
274be06c1b
Fixed #969 .
2008-04-17 11:07:00 +00:00
romanb
0370cedc08
Fixed #966 .
2008-04-15 22:19:22 +00:00
romanb
234253edd1
Perf. improvement on hydrating joined resultsets, part 2.
2008-04-12 20:24:28 +00:00
romanb
3d8a37b2b4
Refactorings along with a speed improvement on the Hydrator when processing joined resultsets. Other minor tweaks.
2008-04-12 20:11:11 +00:00
guilhermeblanco
42ec3c949c
Merged r4208 into trunk and jepso branch
2008-04-09 14:31:25 +00:00
romanb
78492f3c9a
Ported fix for #929 from 0.10 to trunk. Testcase needs to be ported later since the behavior implementation is not useable in trunk atm.
2008-04-05 07:35:57 +00:00
Ezku
2d68239681
Fixed sqlite dsn in Doctrine_Manager::parseDsn()
2008-03-28 16:25:32 +00:00
romanb
0d67fcaf6d
merged fix for #912 from 0.10 to trunk (turned out it was not broken in trunk but i merged the patch & testcase anyway. Other refactorings.
2008-03-26 11:10:45 +00:00
romanb
33c76f620e
refactorings
2008-03-23 11:30:29 +00:00
romanb
7a1beb5b26
Merged fix for #899 from 0.10 to trunk.
2008-03-22 19:41:29 +00:00
romanb
2f1badc7fd
Merged fix for #852 from 0.10 to trunk.
2008-03-21 13:32:10 +00:00
romanb
45d41f1c9b
merged fix for #873 from 0.10
2008-03-20 15:17:01 +00:00
romanb
223daae2ec
added xsl stylesheet to generate changelogs from svn log. merged a few patches from 0.10
2008-03-19 18:33:14 +00:00
romanb
71ed924213
refactorings
2008-03-17 13:26:34 +00:00
guilhermeblanco
d3a261526e
Fixed Doctrine_Pager::getResultsInPage() as reported by Matt Marcum through email.
2008-03-15 22:20:46 +00:00
romanb
d8b9656d3b
removed superfluous code
2008-03-05 11:25:56 +00:00
romanb
c5bc8641cc
refactorings, a bug fix ( #786 ) and improved performance for the hydration of results from polymorphic queries.
2008-03-05 11:24:33 +00:00
lsmith
fdf4aa18f8
- implode expects an array()
2008-03-02 16:51:09 +00:00
guilhermeblanco
65442c7488
Added free( = false) support in Doctrine_Record and Doctrine_Collection (trunk)
2008-02-29 19:33:31 +00:00
adamthehutt
a6a5192f47
fixed typo
2008-02-28 22:18:45 +00:00
romanb
072008b65d
moved managed record/entity handling to the UnitOfWork. identity maps are the next. started to remove obsolete table stuff.
2008-02-28 15:30:55 +00:00
guilhermeblanco
2739ed843b
Removed support to imbricated query added yesterday (which fixed ticket #782 ). The same thing could be easily achieved without need of Doctrine support, as mentioned in comments. Dev team decided to drop this support for now, but are considering for 1.0
2008-02-28 01:40:49 +00:00
guilhermeblanco
331548caa9
Added imbricated query support in whereIn method ( fixes #782 )
2008-02-27 03:54:17 +00:00
guilhermeblanco
139febaed6
Adjusted quoteIdentifier in update and delete when executing a SQL query (also fixes #807 )
2008-02-27 02:17:42 +00:00
guilhermeblanco
9ee6158ffc
Added float8 support in pgsql. Fixes #808
2008-02-27 01:39:51 +00:00
romanb
85cb20f6dd
made sure every caller of getIdentifier can handle an array. getIdentifier now always returns an array.
2008-02-24 20:31:49 +00:00
romanb
edcc8be207
some smaller refactorings. started to replace the term 'template' with 'behavior'.
2008-02-24 16:54:02 +00:00
romanb
c1c3f48960
validator refactorings and others
2008-02-23 22:04:39 +00:00
jwage
514e17ea70
Changed all references from phpdoctrine.com to phpdoctrine.org
2008-02-22 18:11:35 +00:00
guilhermeblanco
d674b8ead7
Added Doctrine_Pager_Range::isInRange, which checks if a given page is in the range
2008-02-21 16:06:46 +00:00
guilhermeblanco
499eaf6cb2
Merged r3868 in 0.10 and trunk
2008-02-21 15:18:30 +00:00
guilhermeblanco
ec0ebeb195
Updated manual pages and changed documentation naming convention (from process to parse) to follow the API
2008-02-21 14:54:55 +00:00
guilhermeblanco
6ea8a47773
Split of methods in _parseTemplate in 0.10 and trunk
2008-02-21 14:12:01 +00:00
guilhermeblanco
1ab785ac44
Updated pagination chapter in manual (0.10 and trunk). Merged r3870 in trunk
2008-02-21 04:33:03 +00:00
guilhermeblanco
85e26cfd7b
Fixed method getNextPage that was always returning the last page in all branches
2008-02-21 04:15:13 +00:00
adamthehutt
6ed10e06ed
Added readonly validator
2008-02-21 02:28:30 +00:00
romanb
eb02b4d002
started refactoring to final mapper structure for 1.0. different mapping strategies are factored out as separate strategy classes instead of inheritance.
2008-02-20 20:54:20 +00:00
jwage
dcc2a54e63
Reversed r3840. Broke tests.
2008-02-19 20:12:46 +00:00
jwage
d5b8a6a70b
Merged r3839 from 0.10
2008-02-19 19:51:08 +00:00
guilhermeblanco
ebdb97b969
Second parameter support in Doctrine_Pager::setCountQuery and added new method: Doctrine_Pager::getResultsInPage(), which returns the numbers of itens in current page
2008-02-19 02:37:09 +00:00
jwage
57df018c27
Merged r3834 to 0.9 and trunk. Fixed conservative model loading to actually be conservative.
2008-02-19 00:24:32 +00:00
jwage
a8c5542f8f
Merged r3830 to trunk and 0.9 branch. Bug was originally fixed in the 0.10 branch first
2008-02-17 22:52:37 +00:00
gnat
d0ee6cd14a
pre/post Up/Down methods
2008-02-17 04:53:51 +00:00
jwage
589e231494
Merged r3815 to trunk
2008-02-17 04:02:27 +00:00
romanb
e354e527d5
small refactorings
2008-02-16 19:37:51 +00:00
romanb
be5aac16fd
small refactorings
2008-02-16 19:10:16 +00:00
jwage
bea3a7c50d
Minor changes backported from 0.9 and 0.10
2008-02-15 18:42:06 +00:00
adrive
23ab5b902d
Merged 3786 (removed is_numeric check from convert boolean method, when array is passed as parameter)
2008-02-15 16:59:44 +00:00
guilhermeblanco
7fe74767d7
Small fix convertion of enum ( fixes #788 )
2008-02-15 16:57:46 +00:00
guilhermeblanco
09243b2416
Added NOT operator recognition in DQL ( fixes #496 )
2008-02-15 15:07:47 +00:00
guilhermeblanco
a3348ddaa9
Applied patch provided by ticket #788 in 0.9, 0.10 and trunk
2008-02-15 14:49:21 +00:00
meus
f5b0b6bfec
added tests for Collection. also fixed a bug with serialization in collections. added copyright header to the two new testfiles
2008-02-15 00:57:34 +00:00
romanb
081ef099d4
refactoring
2008-02-14 22:41:06 +00:00
meus
b040bbe35d
Added tests for Doctrine_Access. It uses annotations for exceptions and to mark functions as tests. Also changed some logic in access and implementing classes to make the abstraction a little bit more solid
2008-02-14 20:20:35 +00:00
guilhermeblanco
9929d5574d
Merged changeset r3758 into 0.10 and trunk (gnat missed to do it)
2008-02-14 15:56:45 +00:00
adrive
05acd91da8
Merge r3769 (fixed problem with convertBoolean in Pgsql)
2008-02-14 13:27:48 +00:00
romanb
c3f23f84e3
relaxed a comparison in the hydrator. caused buggy behavior.
2008-02-13 15:27:49 +00:00
romanb
b6a6866b9c
refactorings
2008-02-13 10:53:07 +00:00
guilhermeblanco
72316541c4
Merged r3561 into 0.10
2008-02-13 04:13:55 +00:00
guilhermeblanco
6fda95bfa7
Merged r3686 into 0.10 branch and trunk
2008-02-13 02:56:42 +00:00
romanb
eb99219068
refactorings
2008-02-12 12:31:28 +00:00
romanb
f1651489c2
more experiments with the new testsuite.
2008-02-11 22:33:47 +00:00
romanb
ade4cd2af1
cosmetics
2008-02-11 17:08:22 +00:00
pookey
04276090b5
fixes #732 - yes, it's a nasty hack, but we have a new parser on the way
2008-02-10 14:49:22 +00:00
romanb
0061bc827b
new test setup refactorings
2008-02-10 14:32:05 +00:00
romanb
ec404b46c7
merged 3708 ( Fixed #776 ) from 0.10 branch to trunk.
2008-02-07 22:27:29 +00:00
romanb
dad3137528
cleanups
2008-02-07 22:21:18 +00:00
romanb
0892647f7a
Joined strategy bugfix and cosmetics.
2008-02-07 10:40:27 +00:00
romanb
56407f785a
Merged r3518:r3700 from branch to trunk. Branch to be deleted, soon. Development continues in trunk.
2008-02-03 21:29:57 +00:00
RQuadling
e381fdde41
Ticket: 766,767
2008-02-01 16:15:34 +00:00
lsmith
fcfff27a76
- fixes #519 and #761 (patch provided by RQuadling)
2008-01-30 23:03:56 +00:00
lsmith
a2d69c5d8e
- no longer (never?) needed
2008-01-30 23:00:46 +00:00
guilhermeblanco
e1580c4095
Merged changeset #3588 into 0.9 and 0.10 branches. Fixed ws in trunk
2008-01-30 00:32:36 +00:00
guilhermeblanco
6b484334a4
Merged changeset #3621 into 0.9 and 0.10 branches. Fixed ws in trunk
2008-01-29 23:19:20 +00:00
lsmith
2d24e9add0
- lazy load the _tableFactory and record listener in order to reduce the dependencies for a to be created DBAL package
2008-01-29 09:59:37 +00:00
lsmith
3a5bd47fc1
- ws fixes
2008-01-28 13:05:11 +00:00
lsmith
e2d8a91653
- fixed class name in comments
2008-01-27 18:53:36 +00:00
pookey
ebbfcf4cad
a previous commit of mine broke method chaining
2008-01-27 15:02:45 +00:00
pookey
f7d691a0aa
fix to whereIn to prevent invalid SQL being generated when no params are passed
2008-01-26 21:20:24 +00:00
pookey
7b453f1ab1
improved exception message
2008-01-25 23:13:04 +00:00
jwage
a6b194b928
Work on migrations diff and fixes.
2008-01-25 03:18:51 +00:00
jwage
ddefc7f96d
Fixes to sandbox and added printing of params to output of dql task.
2008-01-25 02:53:24 +00:00
jwage
eb04f52cd0
Added params argument to allow you to use tokens
2008-01-23 23:27:02 +00:00
jwage
8cc89beb41
Moved Doctrine_Migration_Builder and Doctrine_Import_Builder to Doctrine_Builder_Migration and Doctrine_Builder_Record. Updated code to work with new class names.
2008-01-23 16:47:58 +00:00
guilhermeblanco
c5e60f3e5c
Adjusted ownsOne and ownsMany methods errors to be better descriptives
2008-01-23 15:21:28 +00:00
jwage
5eecd9696e
fixes #644
2008-01-23 08:25:41 +00:00
jwage
52169a4197
fixes #648
2008-01-23 08:22:42 +00:00
jwage
7a2fec88ed
Formatting fixes.
2008-01-23 08:20:38 +00:00
jwage
02c57f5977
fixes #688
2008-01-23 08:04:54 +00:00
jwage
1f18a99fd1
fixes #659
2008-01-23 07:28:04 +00:00
jwage
3018a9e977
fixes #692
2008-01-23 03:40:13 +00:00
baron314159
e44bdb8e81
fixes #689 , which details problems with the handling of MySQL native enum columns and model class generation.
2008-01-23 02:18:36 +00:00
jwage
aa1592c002
Fixed incorrect function call.
2008-01-23 01:00:45 +00:00
jwage
9ee248bfe7
Undid change to reset(), it broke the tests.
2008-01-23 00:59:30 +00:00
jwage
c8c859baec
fixes #696 function was named synchronizeWithArray but i renamed it to synchronizeFromArray because it makes more sense because all the other mades user the term "from"
2008-01-23 00:54:58 +00:00
jwage
64ead091aa
Formatting fixes.
2008-01-23 00:43:03 +00:00
jwage
ee3bf044a6
fixes #674
2008-01-23 00:39:37 +00:00
jwage
99d309feed
fixes #699
2008-01-23 00:06:27 +00:00
jwage
3e1014af17
fixes #729
2008-01-23 00:04:14 +00:00
jwage
4e522ebf6b
fixes #717
2008-01-22 23:50:32 +00:00
jwage
3a0f99f637
fixes #701
2008-01-22 23:12:29 +00:00
jwage
767172a60d
fixes #721
2008-01-22 23:10:21 +00:00
jwage
d47f4ddab4
Changed all references to http://www.phpdoctrine.com/net to http://www.phpdoctrine.org
2008-01-22 22:52:53 +00:00
jwage
24e264ac99
Fixed compiler task and made Compiler return the path compiled file was written to.
2008-01-22 22:08:08 +00:00
jwage
d5c91081e0
-
2008-01-22 21:58:03 +00:00
jwage
689a4c6f45
Connection refactoring to allow create/drop database functionality for sqlite. fixes #480
2008-01-22 21:42:17 +00:00
jwage
733eecbbc9
Added contains() method which was introduced in the 0.9 branch.
2008-01-22 17:00:48 +00:00
dbrewer
4b95d0504c
Merged r3550 from 0.9 branch to trunk.
2008-01-19 02:35:39 +00:00
guilhermeblanco
ef4798921b
Removed initial definition of setSelectedTemplate in Doctrine_Pager_layout in all branches. If no selected template is defined, the default assigned template is used. This prevent possible issue where the user defines default but not selected template (will use the defined one in class, what is wrong)
2008-01-17 20:17:44 +00:00
pookey
85846c39bd
setting default templatse for the payer layout
2008-01-17 16:00:52 +00:00
guilhermeblanco
99d026b894
Fixed _adjustOffset in order to get it working after previous change in Pager
2008-01-17 15:33:08 +00:00
guilhermeblanco
78edfd59a6
Fixed wrong call to _setExecuted in Pager
2008-01-17 15:01:07 +00:00
guilhermeblanco
e5f2aa5208
Added different counter query support for Doctrine_Pager. Now it can use 2 different queries to paginate items. Added 4 new methods: setCountQuery, getCountQuery, setCountQueryParams and getCountQueryParams. If not defined a counter Doctrine_Query, the collector one is used. If no params were defined to be used in counter query, the ones passed by execute method are used
2008-01-17 14:37:11 +00:00
guilhermeblanco
af32f80176
Added a fix in toArray method to prevent mapped Doctrine_Record values to be displayed fully
2008-01-17 13:26:31 +00:00
pookey
dca3c3b701
making a comment a little clearer
2008-01-16 23:42:54 +00:00
guilhermeblanco
b68eba074b
Fixed count bug in Doctrine_Pager that was wrong counting the total of results found. Added 3 new methods: Doctrine_Pager::getExecuted (checks if the Pager was already executed), Doctrine_Pager_Layout::execute (handy access to execute Pager query without having to access Doctrine_Pager instance) and Doctrine_Pager_Layout::processPage (processes the template of a given page and returns the parsed string)
2008-01-16 20:51:36 +00:00
zYne
f07ab595ac
2008-01-16 14:29:11 +00:00
romanb
71d1150e3f
Second merge from experimental branch to trunk.
2008-01-12 19:49:11 +00:00
wernerm
e01809d19a
Fixed returned range bug(s)
2008-01-11 14:50:34 +00:00
romanb
62860d5191
fixed joincondition tests.
2008-01-11 13:53:30 +00:00
zYne
a6e84aeed1
2008-01-10 21:39:05 +00:00
lsmith
e0dcd111fe
- implemented listTriggers and listTableTriggers()
2008-01-10 16:13:56 +00:00
lsmith
fa5ab7d2b1
- moved getIntegerDeclaration to export since we already have getDeclaration in there
2008-01-10 15:49:25 +00:00
lsmith
b1df27b1ac
- use sql standard concat syntax instead of registering concat() mysql hack
2008-01-10 15:09:30 +00:00
lsmith
658f73f045
- use same implementation as MySQL
2008-01-10 15:02:24 +00:00
lsmith
82f0e5f92c
- do not force a DEFAULT NULL on LOB fields
2008-01-10 13:19:17 +00:00
lsmith
6f5cf40352
- default to sql standard concat syntax instead of mysql's non standard variant
2008-01-10 12:23:55 +00:00
lsmith
442fb47768
- unified getDefaultFieldDeclaration(), force DEFAULT NULL when no default is set and the field allows nulls
2008-01-10 09:45:01 +00:00
lsmith
53c044fc4d
- ported concat() from MDB2
2008-01-10 08:49:13 +00:00
lsmith
f53a239334
- ported listTableForeignKeys() from MDB2
2008-01-10 08:48:15 +00:00
lsmith
ba8aae6005
- ensure that nextId() always relies in autoincrement id generation to ensure that last insert id works reliably
2008-01-10 08:47:00 +00:00
lsmith
16ef556f62
- added support for temporary tables, tweaked createSequence and enum support in getDefaultFieldDeclaration()
2008-01-10 08:44:57 +00:00
lsmith
406c57b53b
- cosmetic fixes
2008-01-10 08:29:20 +00:00
zYne
500783aa31
fixes #718
2008-01-08 21:22:37 +00:00
pookey
648f068535
reverting previous change which references and closes #712
2008-01-07 14:17:29 +00:00
pookey
89cb0ecaad
refs #712
2008-01-07 13:48:08 +00:00
romanb
bd2e0d8ec5
Reapplied changes to Doctrine.php made by jonwage.
2008-01-06 09:47:00 +00:00
romanb
d9112ad1d7
Merged current state of my experimental branch back to trunk.
2008-01-05 19:55:56 +00:00
romanb
344ab02d95
reverting the reorganization done in 3455-3456 in order to make merging my experimental branch to trunk easier.
2008-01-05 19:14:35 +00:00
Jonathan.Wage
60c921762d
A few more fixes for autoloading and locating paths to Doctrine components.
2008-01-05 07:53:24 +00:00
Jonathan.Wage
44820ec14a
Preparation for new organization of code in to sub packages. Changed autoload() to work with new structure.
2008-01-05 07:39:25 +00:00
zYne
33223b5b6c
getDatabaseName()
2008-01-04 23:37:25 +00:00
Jonathan.Wage
02a57e4ceb
Removed $aggressive param as it is not needed and was left there by mistake.
2008-01-03 20:14:50 +00:00
adamthehutt
0b78afa97d
Make Doctrine_Collection objects use Doctrine::ATTR_COLL_KEY for data array keys
2007-12-30 20:43:31 +00:00
hartym
716bcedd76
Problem on Sluggable Listener default values merging
2007-12-30 18:44:00 +00:00
romanb
b994c1a6f9
Fixed #697 .
2007-12-28 11:51:48 +00:00
guilhermeblanco
260b9ae291
Added support to params in join methods of Doctrine_Query
2007-12-26 20:52:37 +00:00
guilhermeblanco
82379e6dc3
added prevention to override page_number mask
2007-12-22 19:04:18 +00:00
Jonathan.Wage
44929d5391
Added note about deprecating methods.
2007-12-20 04:08:25 +00:00
Jonathan.Wage
b438827d90
Fixed spelling error.
2007-12-20 03:09:57 +00:00
Jonathan.Wage
7b321a215d
Formatting fixes.
2007-12-19 23:35:18 +00:00
Jonathan.Wage
2e16d60601
fixes #649
2007-12-19 23:33:31 +00:00
Jonathan.Wage
bef37c27ba
fixes #658
2007-12-19 23:02:26 +00:00
Jonathan.Wage
0e528198fb
fixes #640
2007-12-19 22:45:14 +00:00
Jonathan.Wage
d1df55e316
Refactorings for schema files and Doctrine_Record builder. More to come but got held up on some things that zYne- must fix first.
2007-12-19 22:41:11 +00:00
guilhermeblanco
132e5c969c
CHG: Changed private variable name (chunkLength to _chunkLength) in Jumping.php and Sliding.php
...
CHG: Added documentation for Doctrine_Pager and Doctrine_Pager_Range* classes
TODO: Finish pagination documentation
2007-12-19 03:07:41 +00:00
Mosh
9de41c83d1
Fixed #680 : Missing quotation of ENUM DEFAULT Statement
2007-12-18 19:40:18 +00:00
pookey
f3e9fe66a8
adding a toString method to pager layout
2007-12-18 12:00:12 +00:00
pookey
d6ec2665ec
fixing typo in exception
2007-12-18 11:54:14 +00:00
romanb
51c88e2020
Merged 3405 ( Fixed #626 ) from 1.0 branch.
2007-12-15 19:19:31 +00:00
guilhermeblanco
a95073abff
CHG: Doctrine coding standards adjustments
...
ADD: Added methods: addMaskReplacement, removeMaskReplacement and cleanMaskReplacements in Doctrine_Pager_Layout. They are responsable to make masks behavior as another masks or values on predefined situations.
2007-12-13 03:07:24 +00:00
romanb
1446447107
Fixed #673 .
2007-12-12 16:21:54 +00:00
romanb
79b79909ad
Refactored transactions. Fixed #464 .
2007-12-12 15:52:12 +00:00
romanb
467897dadb
Fixed #626 .
2007-12-12 09:54:39 +00:00
adamthehutt
13b5346a4f
Fix for #669
2007-12-11 23:03:57 +00:00
jackbravo
ab8819ca66
Related to bug #662
2007-12-11 18:25:34 +00:00
romanb
9281630ed7
Fixed #664 .
2007-12-11 15:55:45 +00:00
romanb
6a958bae47
Fixed #665 .
2007-12-11 15:46:27 +00:00
romanb
532dea0dd2
Fixed #662
2007-12-11 15:25:56 +00:00
romanb
2717408be8
Fixed #662
2007-12-11 15:25:23 +00:00
wernerm
094dab1d4f
Changed the link() method's use of getLocal() and getForeign() to getLocalFieldName() and getForeignFieldName().
2007-12-11 11:31:13 +00:00
wernerm
c655b6023c
Added link() functionality to create links between related records. It basically works in the opposite way as unlink().
2007-12-11 11:10:27 +00:00
zYne
efa434800c
removed parseAggregateFunction
2007-12-10 19:19:29 +00:00
zYne
3500a6fb17
added parseFunctionExpression
2007-12-10 18:59:12 +00:00
zYne
e5d43b2fcc
added parseSubquery()
2007-12-10 18:51:22 +00:00
zYne
e069f12c6c
2007-12-10 18:32:36 +00:00
pookey
f4186781db
possibly a temp fix. fix to allow postgres array datatypes work as a string
2007-12-10 13:19:29 +00:00
jackbravo
75ccd8cd43
Change if for else if on synchronizeWithArray
2007-12-09 17:46:28 +00:00
jackbravo
78195944be
Added synchronizeWithArray method and unset functionality for relations
...
The unset functionality is not working for foreignKey relations
2007-12-09 01:56:53 +00:00
Jonathan.Wage
4275c6656f
Removed exec() call and updated docs for data fixtures.
2007-12-07 22:48:28 +00:00
wernerm
0b89c4dda2
Changed loadModels() once again. Removed loading of models based solely on model filename. Added support for different models with the same file names. All models files are required, in order to determine class names. The changes result in an overall increase in flexibility with respect to model file names.
2007-12-07 11:06:55 +00:00
dbrewer
7e0a902aba
Added test case to demonstrate that delimiters in
...
Doctrine_Query_Tokenizer::bracketExplode() were case sensitive, and
changed tokenizer to make them case insensitive.
2007-12-07 03:23:09 +00:00
romanb
af657cbe69
Introduced a new attribute ATTR_AUTOLOAD_TABLE_CLASSES that can be used to control whether Doctrine should try to autoload custom table class files when looking for them.
2007-12-06 19:02:29 +00:00
adamthehutt
2bcd41e237
Fix for ticket #650
...
Ticket: 650
2007-12-06 14:17:03 +00:00
meus
19c08a2f95
removed autoload of self
2007-12-06 11:09:00 +00:00
romanb
05ccf7098d
Improved autoload.
2007-12-05 09:50:47 +00:00
pookey
0c9c3767c2
allowing for the "interval" postgres datatype
2007-12-04 15:22:20 +00:00
romanb
a143caefe3
Fixed #626 . Reopening the ticket for further issues is fine.
2007-12-03 18:37:39 +00:00
guilhermeblanco
806e9c63e6
Fixed default definition in date* fields
2007-12-03 17:56:56 +00:00
romanb
8ed0530fbf
Fixed #626 .
2007-12-03 10:06:30 +00:00
romanb
28fba54f4a
Another hydrator speed improvement.
2007-12-02 15:04:51 +00:00
romanb
5e26473340
Fixed #636 .
2007-12-02 12:56:15 +00:00
romanb
baf77264c1
Hydrator speed improvement
2007-12-01 20:10:29 +00:00
romanb
fc310cf36c
Fixed #626 . Commented out plugin tests due to a fatal error.
2007-12-01 11:18:43 +00:00
jackbravo
a73a73da66
Fix tickets #583 and #576
2007-12-01 01:21:55 +00:00
jackbravo
338bd78e66
Added a description to the Doctrine_Record::cleanData() method
2007-11-30 23:49:46 +00:00
Jonathan.Wage
9f20184fc4
Updated version.
2007-11-30 23:39:32 +00:00
Jonathan.Wage
e6768b4f8b
Initial entry of Geographical template.
2007-11-30 22:49:23 +00:00
Jonathan.Wage
e8bb04a66e
Reverted change. actAs() and loadTemplate() currently only work in the setTableDefinition()
2007-11-30 22:49:04 +00:00
jackbravo
deabfcbb54
Fix ticket #620 , PATCH provided by baron314159, thanks
2007-11-30 22:46:06 +00:00
Jonathan.Wage
70addc55ca
Fixes to model building so it does not generate duplicate relations.
2007-11-29 15:57:05 +00:00
wolfpakz
3aa991821b
- Fixed problem with Nested Set table definition not happening in time for exporting when NestedSet behavior is added through Doctrine_Template_NestedSet.
2007-11-29 01:39:19 +00:00
zYne
7e2669d1bd
fixes #624
2007-11-28 23:06:04 +00:00
zYne
69985832a7
2007-11-28 22:56:45 +00:00
zYne
5738fed7a6
2007-11-28 22:56:14 +00:00
zYne
f8a0eb2e25
fixes #624
2007-11-28 22:13:12 +00:00
jackbravo
b329ae870b
Added a $deep argument to refresh
...
The default is set to false because fetching the relations deletes
previously fetched relations =P. This is, if you fetched an aggregated
value (SUM, COUNT), it wont be refreshed, it will be overwritten by the
actual related values.
2007-11-28 19:35:44 +00:00
wernerm
724cc2b1e7
MAde small fix to model loading that caused a warning to be raised.
2007-11-28 16:51:06 +00:00
Jonathan.Wage
f0b0100987
Code formatting.
2007-11-28 03:22:09 +00:00
wolfpakz
fc34ba6ec4
- Small fix for initialization of method parameter.
2007-11-28 02:53:37 +00:00
wolfpakz
7c0a538b11
- Corrected capitalization in casts to type string.
2007-11-28 02:48:37 +00:00
Jonathan.Wage
9eac2776ea
Consolidated a few things. Initial entry of Inflector class. Moved some methods from Doctrine base class to Doctrine_Lib and Doctrine_Inflector.
2007-11-28 02:21:42 +00:00
zYne
b6924e0f0d
2007-11-28 00:01:03 +00:00
zYne
a5f755f4ea
enhanced plugin initialization procedure
2007-11-27 23:59:18 +00:00
gnat
206002de10
allow default options to be overridden properly
2007-11-27 23:19:44 +00:00
gnat
536c4fd55a
optional fields
2007-11-27 20:16:16 +00:00
Jonathan.Wage
542f9b0d72
Further model loading refactoring and refactored merge() in Doctrine_Record
2007-11-27 18:23:13 +00:00
wolfpakz
0ac4d757c7
- Fixed typo in column declarations.
2007-11-27 16:45:52 +00:00
zYne
80bb1ed071
added getPlugins()
2007-11-27 16:08:34 +00:00
Jonathan.Wage
32392d9ad1
fixes #473
2007-11-27 03:45:30 +00:00
Jonathan.Wage
562a48769c
fixes #568
2007-11-27 03:36:40 +00:00
Jonathan.Wage
7389d82834
fixes #547
2007-11-27 02:50:56 +00:00
jackbravo
a7b86faadf
Added mergeDeep method to Doctrine_Record.
...
Be carefull when using it as it loads related records.
But can be really convenient, specially when loading data from the
_GET and _POST variables (possibly from a form)
2007-11-26 22:52:36 +00:00
zYne
377d157a00
2007-11-26 22:27:23 +00:00
zYne
eb555668d2
2007-11-26 22:25:18 +00:00
guilhermeblanco
d411ba4233
Implemented Doctrine_Pager_Layout, providing a programatically way to generate paginator layout using Doctrine_Pager and Doctrine_Pager_Range components
2007-11-26 16:27:24 +00:00
zYne
2fef2fd1a4
2007-11-26 00:07:09 +00:00
zYne
8711b28765
fixed code formatting
2007-11-25 23:59:54 +00:00
zYne
18fc6b4aa6
fixed initialize
2007-11-25 23:57:10 +00:00
Jonathan.Wage
84a97f98ed
Fixes #618
2007-11-25 21:39:39 +00:00
zYne
391cdfab01
doc blocks added
2007-11-25 21:16:44 +00:00
zYne
2174bc99e7
enhanced the internal API of various plugins
2007-11-25 21:10:49 +00:00
Jonathan.Wage
3429b18cc9
Fixes #610
2007-11-25 20:45:33 +00:00
Jonathan.Wage
c483704a5e
Fixes #613
2007-11-25 20:36:12 +00:00
Jonathan.Wage
63815bacca
Removed. Will be replaced by native Resource connection driver.
2007-11-25 20:32:34 +00:00
Jonathan.Wage
2bd3667750
A few fixes to Migrations and formatting/code fixes.
2007-11-25 20:30:51 +00:00
zYne
4a99e766a3
changed autoinc key to autoincrement
2007-11-25 20:22:50 +00:00
guilhermeblanco
33ed595536
Implemented Doctrine_Pager_Range functionality. This classes enables a powerful way to generate page ranges (Fowler's pattern) to be used coupled with Doctrine_Pager. Already implemented 2 of the most used ranges: Doctrine_Pager_Range_Jumping and Doctrine_Pager_Range_Sliding.
2007-11-25 20:16:14 +00:00
guilhermeblanco
139720fb9f
CHG: Updated Doctrine_Pager to become coding standards compliant
2007-11-25 19:09:51 +00:00
romanb
05147fbeb6
Completed implementation of the query cache.
2007-11-25 19:07:30 +00:00
guilhermeblanco
bbfa506da8
CHG: Added Doctrine_Pager object, which provides Paginator functionalities to Doctrine.
2007-11-25 18:33:49 +00:00
romanb
352ab0de40
renamed the default hydrator. started to implement a query cache.
2007-11-25 15:57:08 +00:00
zYne
ae4b715754
enhanced plugin building procedure
2007-11-25 12:34:37 +00:00
zYne
4570b90079
fixed CTI column referencing within DQL
2007-11-25 12:02:04 +00:00
romanb
0cda367802
moved tokenizeQuery() to the Tokenizer
2007-11-24 19:08:41 +00:00
romanb
90d472eb98
prepared the tokenizer for getting a state and being a full-fledged object
2007-11-24 18:58:33 +00:00
romanb
18ae694e29
Removed test code
2007-11-24 18:13:00 +00:00
romanb
02e0aff3b9
Added missing file
2007-11-24 18:12:02 +00:00
romanb
78f5a2edcb
More refactorings. Commented out the plugin tests for now. They seem to wreak havoc with a lot of other tests (especially validator tests) and i havent found the reason yet.
2007-11-24 18:11:09 +00:00
wernerm
24a8cef0e6
Fixed getLoadedModels()
2007-11-23 00:28:58 +00:00
wernerm
54050f8c81
Fixed getLoadedModels()
2007-11-23 00:25:28 +00:00
zYne
86939d83bd
fixed removeColumn()
2007-11-22 22:02:35 +00:00
wernerm
5d3b09524c
Added isValidModelClass() static method and fixed getLoadedModels() in order to resort back to the (classical) approach of class inclusion as a fallback when record classes have different names than their file names. The fallback behaviour of getLoadedModels() is now similar to what is was before the changes introduced in rev 3002.
2007-11-22 13:40:22 +00:00
romanb
929273a0f1
More refactorings and small speed improvements on the default hydrator.
2007-11-21 14:29:59 +00:00
romanb
205c50ea39
commented out a test line
2007-11-21 11:58:39 +00:00
romanb
eeb7350f6c
commented out a test line
2007-11-21 11:57:23 +00:00
romanb
a4a1a3f577
Started refactoring of the default hydrator, including some minor speed tweaks.
2007-11-21 11:55:05 +00:00
romanb
156cfd4a27
Introduced a separation of the 2 concerns: 1) Query construction 2) Result hydration.
...
Makes it easier to see the dependencies between these two concerns, cache the results of the query parsing process later on, implement & use alternative hydrators to experiment with different algorithms etc. etc.
Other small refactorings.
2007-11-20 14:26:42 +00:00
romanb
d645b1659c
More refactorings
2007-11-19 17:55:23 +00:00
romanb
ba9e4676fa
2007-11-19 10:00:44 +00:00
meus
d5cc06e7b8
some small refactorings. adding docblocks. creating guard clauses. refactor our some code into methods. no aditional test failures so it looks ok. also added some @todo comments
2007-11-18 20:37:44 +00:00
zYne
7af31c0c51
added getWords()
2007-11-18 17:44:47 +00:00
jepso
309c2936f7
reversed the order of search results
2007-11-18 17:44:08 +00:00
romanb
2a3b6d23b6
Removed some redundant code
2007-11-18 17:28:38 +00:00
romanb
82432246b9
Doctrine_Migration::setTableName now takes the ATTR_TBLNAME_FORMAT into account
2007-11-18 16:42:33 +00:00
romanb
cfc7d4e423
Refactoring. Started to introduced a clear separation between column names and field names (aka column aliases).\nDoctrine_Connection, DQL Parser classes/methods map field names => column names.\nDoctrine_Hydrate maps column names => field names during hydration.\nColumn names are only stored in Doctrine_Table:: and Doctrine_Table::.\nRelations use column names in 'local'/'foreign'.\nWhen using field names (column aliases) you need to use the column names in 'local'/'foreign' when setting up a relation (hasOne/hasMany), not the field names.\n\n In other words column names are only used to communicate with the database. field names are used everywhere else. the casing of field names does not matter. column names are forced to lower case for portability. If you dont use field names (column aliases) your column names are your field names (and therefore all lowercase).
2007-11-18 16:06:37 +00:00
meus
95792cdb17
fixes #596 . Added suggested patch
2007-11-18 12:37:46 +00:00
Jonathan.Wage
2c24b00385
Fixed issue with foreign constraint errors and saving order.
2007-11-16 22:27:28 +00:00
Jonathan.Wage
cb2d131364
Fixed so packages folder is not created unless it is needed/used.
2007-11-15 23:26:29 +00:00
Jonathan.Wage
85ef90fd02
Fixed connection binding so it is only put in the base class.
2007-11-15 23:22:18 +00:00
Jonathan.Wage
6db25011a7
Added docs and enhanced fromArray()
2007-11-15 22:45:09 +00:00
Jonathan.Wage
91cb642d7f
Moved loadTemplate() and actAs() generating to the setUp() method
2007-11-15 22:07:58 +00:00
Jonathan.Wage
04f74dc089
Initial entry of Doctrine_Log(ported from Zend_log)
2007-11-15 21:02:17 +00:00
Jonathan.Wage
e8087eb53f
Fixed issue with create() and the array of passed data
2007-11-15 21:01:19 +00:00
Jonathan.Wage
f11e95497c
Fixed issue with data dumping. Added exception throwing when you use data key that does not exist.
2007-11-15 19:46:17 +00:00
Jonathan.Wage
15bf4d70e0
Fixed issue with specifying directory as schema
2007-11-15 19:43:49 +00:00
Jonathan.Wage
5c6e8f8eb9
New coverage for parser, yaml schema parsing, a few fixes.
2007-11-15 05:16:31 +00:00
zYne
ff892b17c3
fixed enum parameter conversion in count()
2007-11-14 21:57:05 +00:00
zYne
ca736ec75a
added toArray()
2007-11-14 21:06:30 +00:00
zYne
b2c275583e
2007-11-14 20:43:20 +00:00
ppetermann
d862b013d0
making Doctrine::dump() indent arrays
2007-11-14 13:13:23 +00:00
Jonathan.Wage
94007b0a74
Fixes #471
2007-11-14 02:29:05 +00:00
Jonathan.Wage
32c6288179
Fixes #600
2007-11-14 01:57:39 +00:00
zYne
43c8eba2c7
2007-11-13 23:08:12 +00:00
zYne
8e1f157882
nested plugin functionality added
2007-11-13 22:28:37 +00:00
zYne
edfd9f6506
2007-11-13 22:05:12 +00:00
adrive
68d12596ce
Quoted inheritance type value to be able to use string values as keyValues
2007-11-13 16:33:17 +00:00
romanb
187c194bbd
Fixed an issue with the NestedSet where the baseAlias was not reset properly under some circumstances.
2007-11-13 15:52:45 +00:00
zYne
a4795d6300
added hasImpl()
2007-11-12 18:08:20 +00:00
Jonathan.Wage
ed383556ba
Merged r3136:3137
2007-11-11 00:51:13 +00:00
Jonathan.Wage
b889f427c3
Merged r3134:3135 ( fixes #582 )
2007-11-10 22:00:21 +00:00
Jonathan.Wage
e53a659c6e
Merged r3132:3133 fixed #591
2007-11-10 21:39:36 +00:00
Jonathan.Wage
060784adfb
Merge r3127:3129 ( fixes #522 )
2007-11-10 20:11:17 +00:00
Jonathan.Wage
b1c4c5f53f
Merged r3122:r3126
2007-11-10 19:54:34 +00:00
Jonathan.Wage
ec1ec99446
Merge r3121 ( fixed #573 )
2007-11-10 19:40:31 +00:00
zYne
071d5425bc
fixes #580
2007-11-10 15:46:01 +00:00
zYne
bd31958035
drafting the initial CTI support
2007-11-10 13:21:40 +00:00
zYne
8f11427595
added Doctrine_Connection::delete() method (needed as a convenience method as well as for the upcoming CTI support)
2007-11-10 10:37:10 +00:00
zYne
a8d9830dda
added update() method, needed for various things but especially for the CTI implementation
2007-11-10 00:57:13 +00:00
Jonathan.Wage
84fb1ecdc4
Fix array_merge so that schemas that are loaded after are merged in to the existing array of schemas.
2007-11-08 23:49:01 +00:00
zYne
5bb4493864
Drafting the initial CTI support, only works for simple inserts now
2007-11-08 23:03:28 +00:00
dbrewer
3f3103a195
Fixed #587 : added 'removeRecord()' method to Doctrine_Table, which is
...
called in Doctrine_Connection_UnitOfWork->delete().
2007-11-08 22:35:55 +00:00
phuson
175d3307c2
fixed ticket #571
2007-11-08 21:02:56 +00:00
Jonathan.Wage
ee9e79d09e
Fix schema merging and fixed issue with fixtures saving.
2007-11-08 20:59:38 +00:00
wolfpakz
c50b2bc375
- Fixed PHP notice in unserialize() caused by $keyColumn not being initialized.
2007-11-08 20:52:49 +00:00
Jonathan.Wage
769fd478ad
-
2007-11-08 19:01:22 +00:00
Jonathan.Wage
0038138095
Rewrote data loading to support I18n data, nested set data, and better relationship defining for fixtures. Also fixes ticket:528
2007-11-08 18:59:48 +00:00
Jonathan.Wage
37898ac06a
Fix to toArray() when you use toArray(true) on a record that has not been saved yet but has references
2007-11-08 18:54:55 +00:00
Jonathan.Wage
0003c233d4
Fix to fromArray()
2007-11-08 18:53:30 +00:00
Jonathan.Wage
563377cc39
Fix for missing sql when creating tables for model with templates that result in addition tables
2007-11-08 18:52:08 +00:00
Jonathan.Wage
e33130b80e
Fix for coding standards.
2007-11-08 18:50:20 +00:00
samw3
87d58d9964
fixed processRenamedColumns() to work with mysql migrations
2007-11-08 17:10:08 +00:00
samw3
d0d026af05
ugh.. forgot some debug code.
2007-11-08 14:01:03 +00:00
samw3
85299543a3
changed getIntegerDeclaration() to handle $field['default']==NULL condition
2007-11-08 13:58:56 +00:00
Jonathan.Wage
93e1945144
Added trim to package path.
2007-11-08 00:29:15 +00:00
romanb
0ad03d6e2f
Fixed #577
2007-11-07 15:38:20 +00:00
samw3
f6a0aeb5d7
initialized $columns in listTableColumns. it threw an undefined variable error if the table was missing or had no columns defined.
2007-11-07 04:15:45 +00:00
Jonathan.Wage
a476c62efe
Cleaned up some stuff with schema generation and removed name: key from column definition.
2007-11-07 01:57:01 +00:00
Jonathan.Wage
3b898ca983
Added getTableName() and setTableName()
2007-11-07 01:41:50 +00:00
nightfreak
89ce4a28ec
=added the missing getter for the Doctrine_Relation object
2007-11-05 18:05:17 +00:00
meus
ea803566b6
fix dsn so that sqlite:///full/unix/path/test.db and sqlite://c:/full/windows/path/test.db works
2007-11-03 20:34:19 +00:00
zYne
1945b0d7a1
fixes #562
2007-11-03 15:47:24 +00:00
phuson
c6f53114a3
Fixed Ticket #561 . Typo.
2007-11-02 16:59:20 +00:00
meus
79e52571aa
added a convenience method and new coverage stuff
2007-11-02 16:07:11 +00:00
Jonathan.Wage
d099c2e357
Changes extenstion to .php instead of .class.php to be consistant with all of Doctrine.
2007-11-01 23:54:27 +00:00
Jonathan.Wage
6f07c2b100
Fixes to options for builder.
2007-11-01 23:45:33 +00:00
zYne
53413e53a0
2007-11-01 23:03:32 +00:00
zYne
e5f76c44bb
2007-11-01 22:58:10 +00:00
zYne
56432118c9
added getParams()
2007-11-01 22:55:49 +00:00
zYne
01e41f3d27
added possibility for setting user-defined params
2007-11-01 22:52:40 +00:00
Jonathan.Wage
0a2ecb6032
Class renaming.
2007-11-01 22:26:10 +00:00
Jonathan.Wage
8bfbd6a7c7
Clean up, initial entry of root txt files, fixed a few broken unit tests. New documentation.
2007-11-01 19:45:36 +00:00
Jonathan.Wage
146098c3d6
moved around and initial entry of sluggable code.
2007-11-01 15:15:57 +00:00
Jonathan.Wage
7a43ae4091
Initial entry of sluggable template.
2007-11-01 14:47:23 +00:00
Jonathan.Wage
832a8e5595
Refactored code to less lines.
2007-11-01 14:46:11 +00:00
zYne
39b8a3e3e2
2007-10-30 19:19:53 +00:00
zYne
1d6020c454
fixes #533 , using DQL identifier aliases before column names is now optional when selecting from single component
2007-10-30 19:10:18 +00:00
gnat
0695a6ab92
$this->parent doesn't exist
2007-10-30 17:51:33 +00:00
romanb
dc4be22bfe
Added missing attribute check to Doctrine_Configurable. Fixes #545 .
2007-10-30 16:08:35 +00:00
romanb
dfd15a6068
Introduced ATTR_TBLNAME_FORMAT. Closes #257
2007-10-30 13:30:50 +00:00
zYne
b0c7dce47f
fixed record state handling with aggregate values
2007-10-29 23:34:10 +00:00
zYne
486375f844
2007-10-29 22:57:32 +00:00
meus
755316c3fc
added tesst for Tokenizer and Search to get them under full coverage. relatex refactorings and coverage reports
2007-10-29 20:25:38 +00:00
meus
53b05c1d4a
added tests to get complete coverage of Transaction, RawSQL, AuditLog and Query/Having. Related refactorings. Added some getters to be able to test. Also added coverage report for these changes
2007-10-29 19:50:16 +00:00
bschussek
520f4a1056
fixed: old mapped values were deleted when data was hydrated into an existing record (lazy-loading)
2007-10-29 19:26:22 +00:00
zYne
dc5e0cee32
fixes #515 , correlated subqueries with IN operator
2007-10-29 18:04:22 +00:00
zYne
991f456fa4
fixes #514 , literal value as the first operand for IN
2007-10-29 17:54:40 +00:00
pookey
c6facf9ea0
reverting previuos commit
2007-10-29 14:36:21 +00:00
pookey
ab6a7c9385
adding docs for Query::reset() method
2007-10-29 14:30:06 +00:00
pookey
f2eb153723
replacing tabs with spaces
2007-10-29 12:22:53 +00:00
phuson
ff7aac8b30
New fix for the check for duplicates between explicitly declared custom relations and autogenerated relations.
2007-10-29 05:47:50 +00:00
phuson
53eb2ea087
revert change because it was breaking something else...needs to think of another way to do this.
2007-10-29 01:07:14 +00:00
phuson
e7f64afb24
Check for duplicates between custom alias relations and auto-generated relations.
2007-10-27 11:09:13 +00:00
ppetermann
de220fa43f
found a few bugs when i wanted to use Doctrine_Import_Mysql::listTableConstraints()
...
fixed code so those problems wont occure. However the method still not works as intended,
more information see mail at doctrine-dev mailinglist.
Fixed same Problems in other drivers aswell.
2007-10-26 14:56:03 +00:00
meus
eb8b3915fa
fixed getRecord/Collection as xml. removed old obtainIdentifiers function and fixed count call
2007-10-26 09:56:31 +00:00
Jonathan.Wage
db10d4a00e
Formatting/standards changes.
2007-10-26 04:13:29 +00:00
Jonathan.Wage
4428b51746
Fixed bug with default for boolean values not working properly.
2007-10-25 22:26:25 +00:00
Jonathan.Wage
3e31860edd
Troubleshooting why this does not work and I cleaned up the code.
2007-10-25 22:03:59 +00:00
Jonathan.Wage
231b42eb67
Initial entry of timestampable template.
2007-10-25 21:02:06 +00:00
Jonathan.Wage
2ff1dcadc5
Added better support for attributes generation in doctrine records
2007-10-25 21:01:29 +00:00
Jonathan.Wage
872c81cb5a
Fix for index generation only generating the last index only.
2007-10-25 17:49:36 +00:00
Jonathan.Wage
6334c5a165
Reversing fix.
2007-10-25 16:02:00 +00:00
Jonathan.Wage
0da6243086
Fixes to model generation.
2007-10-25 15:22:34 +00:00
Jonathan.Wage
1989b099be
Fixes [ticket:512]
2007-10-25 14:21:25 +00:00
Jonathan.Wage
ab597cdf30
Fixes [ticket:500]
2007-10-25 14:18:26 +00:00
Jonathan.Wage
bea129db14
Added support for packages to the doctrine builder and yaml schema.
2007-10-24 21:21:45 +00:00
Jonathan.Wage
094e6cb3bd
Added to autoloading to support caching the loaded model paths so we can retrieve them with autoload.
2007-10-24 21:20:19 +00:00
ppetermann
c610ba0ab2
corrected creation of Doctrine_Event object
...
to prevent unexpected behaviour during usage
of preHydrate/postHydrate hooks.
2007-10-24 13:44:58 +00:00
meus
3cdaf71ad0
refetch state after preSave listener in unit of work. if state changes in preSave listener it is not taken into concideration when an object is saved/deleted etc. also fixed some small stuff in tests and added new coverage report
2007-10-23 20:21:22 +00:00
Jonathan.Wage
195dff3ec9
Renamed.
2007-10-23 03:50:45 +00:00
Jonathan.Wage
197832739f
Renamed.
2007-10-23 03:48:11 +00:00
Jonathan.Wage
372831d912
Tweaks.
2007-10-23 03:44:29 +00:00
Jonathan.Wage
34d4f12866
-
2007-10-23 03:39:57 +00:00
Jonathan.Wage
e50b27626b
Misc. tweaks.
2007-10-23 00:37:39 +00:00
phuson
a3c39fedcc
Applied patch for ticket #499 . Tested and it seems to be working correctly with patch.
2007-10-22 21:47:05 +00:00
zYne
a4ae926a85
added isIdentifier()
2007-10-22 17:33:47 +00:00
zYne
a01ed0641f
fast identifier search for Doctrine_Hydrate, now the hydration should run in O(1) instead of O(n)
2007-10-22 16:38:03 +00:00
romanb
6ed2e63d88
added hydration mode HYDRATE_NONE
2007-10-22 16:32:07 +00:00
Jonathan.Wage
9895dc1ca3
Changed version to valid version.
2007-10-22 05:11:23 +00:00
Jonathan.Wage
8588f221dd
Added version and moved package file.
2007-10-22 05:09:22 +00:00
romanb
198b34c0b4
fix to assignDefaultValues. should fix #468
2007-10-21 20:12:36 +00:00
meus
a217a6edbc
fixing another linting error
2007-10-21 15:01:10 +00:00
meus
d1f32b05a6
adding missing ; at line 67
2007-10-21 14:47:22 +00:00
romanb
7d1e03901a
cleaning up draft/
2007-10-21 09:00:40 +00:00
romanb
7dbb38719d
fixed #431
2007-10-21 08:39:13 +00:00
romanb
3799de836d
fixed #485
2007-10-21 08:16:31 +00:00
Jonathan.Wage
edc03d5a33
Added magic finder methods. findBy(.*) and findOneBy
2007-10-21 07:24:18 +00:00
Jonathan.Wage
27b369a5f3
Mass search and replace for coding standards changes, doc block formatting, and code spacing.
2007-10-21 06:23:59 +00:00
Jonathan.Wage
4ce2a36968
Fix to naming of spyc and update docs for cli.
2007-10-21 01:16:04 +00:00
Jonathan.Wage
e2a204e0dc
Enhancing CLI. New commands and cleaning up.
2007-10-20 19:14:30 +00:00
Jonathan.Wage
821cc6e51c
Added confirmation for db drop and added ability to make cli interactive.
2007-10-20 17:20:56 +00:00
Jonathan.Wage
bbf05e1676
Fixed notice.
2007-10-20 15:31:14 +00:00
romanb
a14db264ee
reapplied my changes to Export.php that were (accidently?) reverted by jonwage
2007-10-20 14:57:47 +00:00
Jonathan.Wage
975b74bd6f
Enhancements to CLI and removing sandbox files. Will add ignores.
2007-10-20 06:12:20 +00:00
Jonathan.Wage
8d2aebad70
A little formatting and documentation.
2007-10-20 02:30:15 +00:00
Jonathan.Wage
526c4ab1c8
Made methods static.
2007-10-19 22:50:00 +00:00
Jonathan.Wage
9440cf04f6
Additions to migrations to support generating migrations from models or existing databases.
2007-10-19 22:11:45 +00:00
Jonathan.Wage
16933ef9be
Removed Facade.
2007-10-19 14:30:48 +00:00
Jonathan.Wage
779003edcc
Removed Facade and moved all static methods to Doctrine class.
2007-10-19 14:23:42 +00:00
romanb
dfdcf002a1
fixes for exporting indices
2007-10-19 13:16:22 +00:00
romanb
9b4f5db135
fix for mysql export module (allow specifying a default without specifying a length)
2007-10-19 11:13:49 +00:00
romanb
f1c6657c0f
introduced dropForeignKey() to Export and Migration
2007-10-19 10:58:49 +00:00
Jonathan.Wage
9679e5531b
Fix to notice.
2007-10-18 21:57:38 +00:00
zYne
eb9842dcec
2007-10-18 20:39:37 +00:00
zYne
ed8b89fc3b
removed deprecated schema classes
2007-10-18 19:46:06 +00:00
zYne
1a990b6eae
fixed version column attributes
2007-10-18 19:39:19 +00:00
zYne
ee1cf1013a
fixed updateIndex()
2007-10-18 19:37:50 +00:00
phuson
1ddd4f5db4
Added back the generation of "equal: true" from schema files.
2007-10-18 19:36:18 +00:00
zYne
a6d05624f5
fixed versionable template to adhere to generic plugin structure
2007-10-18 19:13:30 +00:00
zYne
ea5e58fece
removed deprecated schema and object classes
2007-10-18 19:05:00 +00:00
romanb
28dcf18508
made version comparison less strict
2007-10-18 16:36:55 +00:00
Jonathan.Wage
1bbc5b15ee
Fixes to relationship building and added support for new schema options.
2007-10-17 23:14:28 +00:00
zYne
08bec68587
2007-10-17 21:17:01 +00:00
zYne
5f0b6cd1cd
fixed VALIDATE_ALL constant value
2007-10-17 19:38:53 +00:00
romanb
e428845d0e
corrected some tests
2007-10-17 19:24:03 +00:00
Jonathan.Wage
e2e38849ac
Added support for connection binding, templates, act as, and attributes.
2007-10-17 19:21:06 +00:00
romanb
f8ee0975c0
fix for the fix.. (foreign key creation)
2007-10-17 19:09:48 +00:00
romanb
29c220f482
export & migration fix
2007-10-17 18:49:02 +00:00
jepso
d9e213a2cf
fixes #484
2007-10-17 14:50:55 +00:00
phuson
3e39fcf30c
Implemented generation for loadTemplate() from Schema file.
2007-10-17 09:18:59 +00:00
phuson
e63393cd39
Added generation for "equal: true" in the relations block of yml.
2007-10-17 05:43:07 +00:00
Jonathan.Wage
852a2fdf87
Fixes to importing and merging of data fixtures from multiple files.
2007-10-17 01:54:27 +00:00
Jonathan.Wage
05119fe758
Fixes for relationship building.
2007-10-17 01:12:21 +00:00
Jonathan.Wage
6ee5df4aab
Addex support for indexes and attributes to schema.
2007-10-16 23:33:14 +00:00
zYne
359d07b04d
fixes #484 , validator nospace not validating correctly
2007-10-16 22:12:04 +00:00
zYne
b102ebf9fb
2007-10-16 22:10:49 +00:00
zYne
76bd8b76e4
added more stopwords to analyzer
2007-10-16 21:49:55 +00:00
zYne
e10acab862
drafting the new class Doctrine_Search_File
2007-10-16 21:33:06 +00:00
romanb
4fb5f7c201
added createForeignKey() support to export module and migrations
2007-10-16 17:05:52 +00:00
romanb
abde67f73c
added createConstraint()/dropConstraing() support to migrations
2007-10-16 16:22:02 +00:00
Jonathan.Wage
37cec1d690
-
2007-10-16 05:39:49 +00:00
Jonathan.Wage
50ab186792
Fixes for sql exporting so it will get all loaded models if no directory is specified.
2007-10-16 02:37:31 +00:00
Jonathan.Wage
f2a7390c29
Fixed calls to wrong static functions and added some functionality to sandbox.
2007-10-16 00:48:09 +00:00
samw3
c8812542b1
fixed newlines (I had my editor in windoze mode)
2007-10-16 00:28:39 +00:00
samw3
d522ba7355
changes db drivers to match the new two parameter Export::getDeclaration()
2007-10-16 00:03:15 +00:00
Jonathan.Wage
09f082421b
Removed because it is replaced with a Doctrine_Task and is available from the cli. You can also call it directly with Doctrine_Facade::compile();
2007-10-15 23:36:00 +00:00
Jonathan.Wage
dd5347b096
Fix to alter table command.
2007-10-15 23:16:54 +00:00
Jonathan.Wage
41f8d264e5
Initial entry.
2007-10-15 23:04:39 +00:00
Jonathan.Wage
f54687fdcb
Fixes to original compiler code to allow the exporting of certain drivers.
2007-10-15 23:03:08 +00:00
Jonathan.Wage
4d36734953
Moved static methods from Doctrine class to Doctrine_Facade and updated the tasks to use Doctrine_Facade.
2007-10-15 22:05:35 +00:00
zYne
ead84035f8
2007-10-15 22:01:04 +00:00
zYne
c4b3a18a59
table refactoring continues
2007-10-15 21:39:35 +00:00
Jonathan.Wage
6394c79281
initial entry
2007-10-15 21:25:53 +00:00
Jonathan.Wage
9e9ab7fb33
Added documentation.
2007-10-15 21:22:31 +00:00
Jonathan.Wage
37ffee975c
Moved the tasks from the cli so they are not together.
2007-10-15 21:18:13 +00:00
samw3
ef40c0492f
getConnectionByTableName() returns Doctrine_Manager::connection() if table does not exist
2007-10-15 21:05:20 +00:00
wernerm
3eb463ad4f
Moved the cli_compiler back to lib. It has also been updated again.
2007-10-15 20:56:55 +00:00
zYne
d6ef2b3f4e
removed deprecated attribute from getTable()
2007-10-15 20:56:23 +00:00
zYne
3b8efd07e6
added initIdentifier()
2007-10-15 20:43:24 +00:00
Jonathan.Wage
54c3b98d73
Fixes.
2007-10-15 20:39:44 +00:00
pookey
071febe96c
fixing handling of default values
2007-10-15 20:06:28 +00:00
Jonathan.Wage
4f996de800
Updated generated accessors to have load argument.
2007-10-15 17:52:34 +00:00
Jonathan.Wage
c5daa2310c
Fix to generated accessors.
2007-10-15 15:08:26 +00:00
Jonathan.Wage
3048620a05
Fixes for buildingsql and generating models.
2007-10-15 15:01:54 +00:00
Jonathan.Wage
0dbea77dcd
Fix to Builder so the generate_accessors option is used.
2007-10-15 14:19:51 +00:00
Jonathan.Wage
33c209db7a
Fixes up the getters/setters that are generated in Builder.
2007-10-15 14:18:31 +00:00
Jonathan.Wage
38331335ab
Fixes to indexes and to not call parent::setUp() in the base classes.
2007-10-15 14:09:59 +00:00
Jonathan.Wage
34af8e3aa1
Moved cli to sandbox folder. Fixes to importing schema and generating sql.
2007-10-15 13:47:24 +00:00
zYne
3cea839f45
2007-10-14 22:11:48 +00:00
zYne
39bfb030c9
2007-10-14 20:32:48 +00:00
pookey
0f79ed1d56
improvement to option handling, and added accessor generators
2007-10-14 19:47:38 +00:00
phuson
15cdb65ba7
Added missing argument.
2007-10-14 07:58:52 +00:00
phuson
a98961bd03
Implemented generation of indexes and their definitions from schema files.
2007-10-14 06:44:49 +00:00
zYne
b202f467c3
2007-10-13 21:40:43 +00:00
romanb
e79f1c34cf
small improvement to Doctrine_Hydrate_Array::search()
2007-10-13 20:46:45 +00:00
zYne
ec292991ce
huge speed improvement for hydration hooks
2007-10-13 19:30:45 +00:00
zYne
32a4639aa4
batch update functionality added
2007-10-13 17:52:16 +00:00
zYne
7d7313ab4a
2007-10-13 17:06:26 +00:00
zYne
fa5c28fde0
updated plugin classes to use the refactored main class
2007-10-13 16:49:42 +00:00
zYne
a9e5a35917
plugin refactoring continues
2007-10-13 16:27:47 +00:00
zYne
a73ce3a4b5
2007-10-13 09:01:42 +00:00
zYne
657d656614
refactored plugins
2007-10-13 09:01:03 +00:00
zYne
780c0deb1b
2007-10-13 08:55:06 +00:00
zYne
483cf72448
2007-10-13 08:50:48 +00:00
zYne
6f5ae1c305
2007-10-13 08:39:26 +00:00
zYne
f3867dbf71
2007-10-12 21:32:26 +00:00
ppetermann
37d7707f57
ok, fixing last fix
...
after my last commit i did some research in the php/pdo documentation and found that the port (well even the dsn) syntax depends a lot on the driver.
so my last 'fix' did fix it for mysql - but broke it for dblib/mssql, this patch should make it work with those aswell (just moved jonwages solution to a own case for dblib & mssql driver). Someone should check if it works with the other drivers (i dont have all those database systems) cause looking at the doc
did show some more diffrences. (PHP Documentation for example says the dsn for pgsql needs to be delimited by spaces instead of semi-colons)
2007-10-12 13:18:40 +00:00
ppetermann
2621996cb2
fixed dsn bug (if port given pdo wants it to be added as
...
port=12345; to dsn not :12345)
2007-10-12 12:25:13 +00:00
wernerm
97a1552c41
Updated the cli compiler to account for the other cli components that were introduced recently.
2007-10-12 02:20:56 +00:00
Jonathan.Wage
057266c068
Fix to dsn and ports
2007-10-11 22:42:07 +00:00
Jonathan.Wage
0e72ae2594
Documentation changes.
2007-10-11 05:46:38 +00:00
Jonathan.Wage
05f74be1b7
Initial entry if cli and out of box configuration methods.
2007-10-11 05:43:29 +00:00
Jonathan.Wage
51a444e2e8
More documentation.
2007-10-11 04:24:01 +00:00
Jonathan.Wage
347ec1272b
Documentation.
2007-10-11 04:23:00 +00:00
Jonathan.Wage
cdc4943263
Comments.
2007-10-11 04:13:23 +00:00
Jonathan.Wage
c5e1a15f5a
A few tweaks to arguments and how they are handled.
2007-10-11 04:11:50 +00:00
Jonathan.Wage
81324ec826
Fleshing out functionality of CLI system and changed syntax of migration classes to only required a to parameter since we already know where we are coming from.
2007-10-11 03:23:33 +00:00
Jonathan.Wage
5255145701
Tweaks to CLI and initial entry of some new blank tasks.
2007-10-10 18:21:36 +00:00
Jonathan.Wage
0da69dd454
Removed initial test task.
2007-10-10 03:47:11 +00:00
Jonathan.Wage
c6b44714f3
Initial entry of cli tasks.
2007-10-10 03:46:17 +00:00
Jonathan.Wage
b005689e8a
More changes to Cli system.
2007-10-10 03:45:02 +00:00
Jonathan.Wage
4e877c52e4
Fleshing out the cli system.
2007-10-10 02:31:11 +00:00
Jonathan.Wage
a016cb195c
Removing resource from drivers.
2007-10-09 22:46:17 +00:00
Jonathan.Wage
84b16ff70f
-
2007-10-09 22:45:37 +00:00
zYne
ec262f0c13
added skeleton for the resource adapter
2007-10-09 22:18:51 +00:00
Jonathan.Wage
e80876ccf3
Fleshed out cli system and added one sample task.
2007-10-09 22:15:14 +00:00
Jonathan.Wage
b930116218
Initial entry of skeleton for Doctrine_Cli
2007-10-09 21:39:48 +00:00
Jonathan.Wage
4f0234fff4
Removed propel style accessors.
2007-10-09 20:51:42 +00:00
Jonathan.Wage
8598411b02
Added support for Propel style getters/setters to __call()
2007-10-09 20:08:23 +00:00
Jonathan.Wage
029761d78d
Reversing change.
2007-10-09 17:38:11 +00:00
pookey
16c32e2bd6
Fixing bindParam(), which should have it's 2nd param passed by reference, not value
2007-10-09 13:24:31 +00:00
Jonathan.Wage
4d38b32209
Added ability to put php in all inputted files/strings to parser.
2007-10-09 02:21:53 +00:00
Jonathan.Wage
dd71ec4b06
Fixes for composite keys giving error.
2007-10-09 01:34:36 +00:00
Jonathan.Wage
fe34a0d29f
Fix to fixtures importing and relationships satisfying.
2007-10-08 23:55:25 +00:00
zYne
c69c0c5d53
support for persistent connections, fixes #447
2007-10-08 23:22:31 +00:00
zYne
9a0ef8e97f
unique constraints automatically removed from translation table
2007-10-08 23:11:49 +00:00
zYne
eed1455f52
unique constraints no longer part of auditlog version table
2007-10-08 23:03:59 +00:00
zYne
8fb82c2f65
Fixes #427 , now the AuditLog component should work
2007-10-08 22:58:53 +00:00
Jonathan.Wage
1f1fef741c
Fix to generating classes.
2007-10-08 22:53:28 +00:00
Jonathan.Wage
94bf9a4c7c
Fix for importing.
2007-10-08 22:47:59 +00:00
zYne
8c413b2427
2007-10-08 22:45:34 +00:00
phuson
dd076e47eb
added logic check for when $models array is empty, but $specifiedModels isn't
2007-10-08 22:43:09 +00:00
zYne
18857d77e4
hasTemplate() added
2007-10-08 21:22:13 +00:00
Jonathan.Wage
3c6eb60037
Fixes for auto completing relationships.
2007-10-08 18:46:38 +00:00
Jonathan.Wage
8cc2c977f0
Formatting fixes.
2007-10-08 18:40:14 +00:00
gnat
102f106838
fix class generation of yml schema fully defined m2m relationships.
2007-10-08 16:49:15 +00:00
adamthehutt
6b26a7b813
Fix for ticket #457 , moves Doctrine_Record::find/One() to Doctrine_Table::execute/One()
...
Ticket: 457
2007-10-08 16:39:12 +00:00
jepso
f1162cd56d
use array_map instead of foreach loop
2007-10-08 16:12:02 +00:00
Jonathan.Wage
300669d13a
Changed methods to public.
2007-10-08 16:04:46 +00:00
Jonathan.Wage
0b6aa395ed
Fixes for migration to allow migrating from current version to latest version.
2007-10-08 15:58:23 +00:00
romanb
69874b729f
small migration fix (notice+warning when the migration folder is empty because of uninitialized variable)
2007-10-08 09:00:20 +00:00
zYne
6e519eb292
fixes #462
2007-10-07 23:43:26 +00:00
zYne
852f2150bf
fixes #463
2007-10-07 23:42:29 +00:00
zYne
7391081d81
fixed fatal method delegation bug
2007-10-07 23:36:28 +00:00
jepso
d78f992eb6
fixed locator class name constructing
2007-10-07 23:03:43 +00:00
zYne
4e7a66744e
2007-10-07 22:43:33 +00:00
zYne
52346aa6c5
moved hydration listeners to record listener
2007-10-07 22:43:04 +00:00
zYne
dc4d96e92f
2007-10-07 22:21:01 +00:00
zYne
24885c0113
fixed references to get()
2007-10-07 21:34:06 +00:00
zYne
f160487445
2007-10-07 21:31:49 +00:00
zYne
43811d2cc6
updated all the necessary classes to use injectable
2007-10-07 20:58:08 +00:00
zYne
13e75b2ccb
2007-10-07 20:35:22 +00:00
zYne
7a014f6d15
initial draft for locator
2007-10-07 20:31:22 +00:00
pookey
ff1316ebc9
allowing for PHP in YAML files to be parsed
2007-10-07 16:21:04 +00:00
zYne
5c3bea6584
2007-10-06 19:10:14 +00:00
zYne
a20ceff363
tests and implementation for hydrate hooks
2007-10-05 22:31:02 +00:00