Benjamin Eberlei
551df4af52
[DDC-1617] Implement support for Generating Unique Constraints/Indexes in @Table annotation of EntityGenerator.
2012-01-28 11:16:36 +01:00
Jan Sorgalla
d68fcd8bd2
Implement custom options on table level
2012-01-26 15:05:26 +01:00
Benjamin Michotte
1d2f46bda7
Add fluent code for relations
2012-01-24 19:08:25 +01:00
Sander Marechal
5dc0081f56
Add support for paginating WHERE NOT ... queries
...
The Pagination tool throws an exception on a DQL query like:
SELECT u FROM User u WHERE NOT (u INSTANCE OF Person)
This is because Paginate does not know about the
Doctrine\ORM\Query\AST\ConditionalFactor which implements the NOT
operator. This patch adds support for that.
2012-01-23 15:42:41 +01:00
Benjamin Eberlei
775071e1ff
[DDC-1613] Merge KnpLabs/Pagerfanta Pagination into a Doctrine\ORM\Tools\Pagination namespace. Thanks to @hobodave, pablo and the knplabs team for developing and maintaining this code.
2012-01-22 13:35:06 +01:00
Benjamin Eberlei
0f3abde413
[DBAL-204] Filter namespaced assets if Schemas/Emulation is not supported.
2012-01-21 11:31:54 +01:00
John Wright
543c73bc05
added optional command array as parameter for run method
2012-01-16 21:01:44 -08:00
armetiz
21c9be74c9
Update lib/Doctrine/ORM/Tools/SchemaTool.php
2012-01-16 13:54:04 +01:00
armetiz
56c49fedd2
Unique key name isn't correctly set - DDC-1603
2012-01-16 10:30:15 +01:00
Benjamin Eberlei
27451a59d4
Merge pull request #254 from jsor/custom_options
...
Pass options attribute in @Column annotation to Schema\Column's customSchemaOptions
2012-01-15 09:06:46 -08:00
Benjamin Eberlei
106f10513f
[DDC-1601] Fix bugs in SchemaValidator, using all modelsets as testdata for a large test
2012-01-15 11:27:52 +01:00
Marcel
f76d327413
use self:: instead of EntityGenerator::
2012-01-13 14:43:13 +01:00
Marcel
72d5d0281a
use !== to check field visibility
...
use class constants
2012-01-13 14:34:34 +01:00
Marcel
69f0d70a98
fix if coding standard
...
fix typo
2012-01-13 14:14:28 +01:00
Marcel
f26d43b3ea
remove whitespace
...
tabs -> spaces
added class constants
updated phpdoc
2012-01-13 11:24:35 +01:00
Benjamin Eberlei
c1dae35a24
Fix notice when using regenerate if exists and file is not new.
2012-01-12 11:20:49 +01:00
jsor
615e22073f
Pass options attribute in @Column annotation to Schema\Column's customSchemaOptions
2012-01-11 15:58:57 +01:00
Marcel Raaijmakers
facd64ef2f
enable set visibilty of class fields in EntityGenerator
2012-01-06 16:58:27 +01:00
Benjamin Eberlei
76e4f5a80b
DCOM-93 - Removed reflection dependency from ClassMetadata completly, moving all the code into ClassMetadataInfo for BC reasons.
2012-01-02 21:32:18 +01:00
Benjamin Eberlei
ea2d4e4282
DCOM-93 - Add ClassMetadataFactory#wakeupReflection implementation
2012-01-02 15:46:20 +01:00
holtkamp
21cfe4ba9f
Allow ExporterDrivers that implement the exportClassMetadata() function to return FALSE when no content is available/needs to be written to a file by the AbstractExporter, preventing empty files to be generated foreach processed ClassMetadataInfo instance.
2011-12-28 09:03:00 +01:00
Benjamin Eberlei
cd6131c9b8
Remove all trailing whitespaces
2011-12-19 22:56:19 +01:00
Benjamin Eberlei
40800bd3cd
DDC-1530 - Validate field types in SchemaValidator
2011-12-19 10:11:11 +01:00
Benjamin Eberlei
072094f722
DDC-1368 - Fix tests
2011-12-17 23:38:39 +01:00
Benjamin Eberlei
170271fd72
DDC-1368 - Improve schema validator
2011-12-17 23:27:39 +01:00
Evan Coury
36a47e391c
DDC-1544 - Add unit test and assertions for ResolveTargetEntityListener
2011-12-17 15:00:05 -07:00
Benjamin Eberlei
267ce7df88
DDC-1544 - Add ResolveTargetEntityListener
2011-12-17 19:35:10 +01:00
Asmir Mustafic
289c186de5
orphanRemoval default is false
2011-12-16 16:16:52 +01:00
Andrew Mackrodt
2fdb55a878
Added absolute namespace paths to phpdoc annotations - issue DDC-1025.
2011-12-11 21:56:26 +00:00
Guilherme Blanco
2f6b930a8d
Implemented missing support in CollectionMemberComparison. Removed old todo in ArrayHydrator. Finished implementation of IdentificationVariable in ArithmeticPrimary.
2011-12-03 15:19:21 -05:00
Benjamin Eberlei
0d4e0626cf
Merge pull request #158 from goetas/cascade-all
...
Collapsed cascade elements, if cascade-all.
2011-11-18 06:49:40 -08:00
Asmir Mustafic
24432bd0ab
tabs
2011-11-18 11:00:20 +01:00
Asmir Mustafic
82a1626e82
Better generation of exported xml (valid with xsd)
2011-11-18 10:57:27 +01:00
Benjamin Eberlei
64b649ef61
Merge pull request #160 from goetas/generation
...
Allow to unset one-to-one relation with generated class
2011-11-13 07:53:58 -08:00
Benjamin Eberlei
f7c46c7b33
DDC-1491 - Fix Schema Validator bug
2011-11-13 15:45:06 +01:00
Benjamin Eberlei
c965d231b1
Rename method and refactor code a bit
2011-10-31 23:21:11 +01:00
Benjamin Eberlei
e31e164896
DBAL-1420 - Use safe mode for schema validation. Dropping stuff isnt necessary here.
2011-10-31 23:12:52 +01:00
Benjamin Eberlei
11f82bd41f
DDC-1439 - Fix validate mapping some more
2011-10-31 20:49:59 +01:00
Benjamin Eberlei
64d405f7dd
Merge origin/master into DDC-1384
2011-10-30 12:12:18 +01:00
Benjamin Eberlei
30731e0727
DDC-1384 - Fix all tests on Oracle
2011-10-29 23:58:09 +02:00
Asmir Mustafic
d09285e9d3
Collapse cascade all test (YAML too)
2011-10-26 10:59:15 +02:00
Asmir Mustafic
7efd615b8c
Coding standards
2011-10-24 12:00:11 +02:00
Asmir Mustafic
5f80b57554
Improoved coding standards
2011-10-24 10:19:01 +02:00
Asmir Mustafic
1b83fcc46d
Coding standards
2011-10-24 09:20:24 +02:00
Asmir Mustafic
d4059b88ca
Nullable relations, fixing join condition
2011-10-21 15:30:21 +02:00
Asmir Mustafic
fe84a61d0b
Better code generation when association is nullable
2011-10-21 09:38:37 +02:00
Asmir Mustafic
596ba3d5b1
Collection inteface instead of ArrayCollection
2011-10-19 15:04:16 +02:00
Asmir Mustafic
be3adfb35e
With TO_MANY relations, class filed is instanceof ArrayCollection,
...
instead of targetEntity class type.
2011-10-19 09:25:40 +02:00
Asmir Mustafic
8f092812c4
Spaces
2011-10-19 09:17:30 +02:00
Asmir Mustafic
9c1202a766
Added <variableDefault> on generated class.
...
This allow to unset many-to-one and one-to-one relations
Example: $user->setGroup(null);
2011-10-19 09:15:41 +02:00
Asmir Mustafic
e19fd756cb
Better indentation for generated class
2011-10-19 09:07:18 +02:00
Asmir Mustafic
97321a1ff2
Collapsed cascade elements, if cascade-all.
...
(better readability for generated xml)
2011-10-18 16:18:25 +02:00
Asmir Mustafic
0d57ffbc3b
Set association-key attribute in xml mapping
2011-10-18 15:48:56 +02:00
Benjamin Eberlei
7b71b3284d
Fix failing test due to EntityGenerator assuming beginning with 2.2 the AnnotationReader is always used. There is still the simple reader though.
2011-10-15 20:41:07 +02:00
Benjamin Eberlei
75e1d17d18
Merge branch 'ValidateJoinColumnsMatching'
2011-10-15 20:33:46 +02:00
Benjamin Eberlei
a82bffbfc9
Make SchemaValidator catch errors such as very invalid schema using only part of the primary key for join columns
2011-10-15 20:31:56 +02:00
Benjamin Eberlei
1f59001ff7
Merge pull request #130 from bmichotte/master
...
Fluent entity (master)
2011-10-15 11:01:19 -07:00
Benjamin Eberlei
52cea01563
DDC-1411 - Fixed onDelete handling in EntityGenerator
2011-10-15 17:53:04 +02:00
Christophe Coevoet
c7c875a063
Fixed the version check in the entity generator
...
The 3.0.x branch of Common has been merged to become the incoming
2.2 release.
2011-10-10 19:20:01 +02:00
Guilherme Blanco
ebe933810e
Implemented HIDDEN support in DQL. Fixes DDC-1363.
2011-10-03 02:07:07 -03:00
Guilherme Blanco
8efae0b232
Fixes DDC-1396.
2011-10-03 01:30:20 -03:00
Guilherme Blanco
cd28051370
Fixes DDC-1395
2011-10-03 01:26:43 -03:00
Benjamin Eberlei
cd7029d266
DDC-1367 - Bugfix
2011-09-25 16:39:41 +02:00
Benjamin
01d900d5d7
tab <-> spaces
2011-09-20 15:50:32 +02:00
Benjamin
944f802d79
Correct indentation
2011-09-20 15:35:16 +02:00
Benjamin
2b334977f5
Add "return $this" to generated methods to get a fluent Enttity class
2011-09-20 14:59:32 +02:00
Guilherme Blanco
2ae3bb6e3a
Fixed bug in Result cache cleaner.
2011-09-19 01:40:30 -03:00
Guilherme Blanco
1fb213760b
Refactored Cache cleaners commands to sync with new Common Cache Providers.
2011-09-15 17:46:13 -03:00
Alain Hippolyte
01c9a4ac1c
Fix documentation for metadata driver
2011-09-08 11:41:09 +03:00
Guilherme Blanco
e3d133af04
Added getQuotedTableName() in missing places of Doctrine ORM. Fixes DDC-1365.
2011-09-07 01:48:19 -03:00
Davy Hellemans
b333ff95fb
Fixed typo
2011-09-05 09:42:09 +03:00
Benjamin Eberlei
53a153bc15
Merge pull request #111 from Gregwar/yaml_entity_repository
...
[Tools] Added entityRepository support in yaml exporter
2011-08-30 11:43:25 -07:00
Benjamin Eberlei
8b38e68e23
DDC-1350 - Bugfixes in Doctrine\ORM\Tools\Setup
2011-08-30 20:40:26 +02:00
Grégoire Passault
240f0ea34c
[Tools] Added entityRepository support in yaml exporter
2011-08-29 17:40:54 +02:00
Benjamin Eberlei
d3b27dcb1a
DDC-1344 - Fix path displaying to not use realpath()ed variables
2011-08-27 13:36:18 +02:00
Fabio B. Silva
a04d2933fa
@Target annotation and support to common 2.2-DEV
2011-08-13 16:28:05 -03:00
Benjamin Eberlei
57cfcfd20e
Merge pull request #79 from mridgway/DDC-725
...
[DDC-725] Removed onUpdate property on join columns
2011-07-26 14:14:30 -07:00
Benjamin Eberlei
598ab36968
[DDC-1215] Fix EntityGenerator inheritance regenerating properties and methods
2011-07-26 22:59:55 +02:00
Benjamin Eberlei
d9b1dbbb09
DDC-1244 - Fix bug with entities without namespace
2011-07-12 23:43:24 +02:00
Benjamin Eberlei
c87dedbec5
DDC-1254 - Dont throw exception about missing id in disconnected metadata factory
2011-07-12 23:39:56 +02:00
Benjamin Eberlei
4796452b07
DDC-1268 - Singular add*() method name through using targetEntity shortname
2011-07-12 23:25:15 +02:00
Benjamin Eberlei
442a2b3a51
DDC-1257 - Fix bug where validation callbacks are added multiple times in EntityGenerator
2011-07-09 15:11:16 +02:00
Benjamin Eberlei
a8048af65d
DDC-1251 - Fix bug in token parsing of EntityGenerator
2011-07-09 14:53:25 +02:00
Benjamin Eberlei
ac76dafe62
Add doccomments, refactor into listener and dump method to allow re-use
2011-07-08 14:32:12 +02:00
Benjamin Eberlei
ef663c83f3
DDC-1258 - Add Debug UnitOfWork Listener
2011-07-08 14:27:59 +02:00
Michael Ridgway
9ae30421dd
Removed onUpdate property on join columns
2011-06-28 15:50:14 -04:00
Michel Weimerskirch
e899205300
Removed superfluous variable name in "@return" documentation
2011-06-28 12:24:24 -07:00
Benjamin Eberlei
1c2ade61ab
DDC-1214 - Fix UpdateCommand::getFullName()
2011-06-19 10:05:30 +02:00
Benjamin Eberlei
02f06b6d52
Add convenience Setup Tool to register autoloaders and create configuration objects
2011-06-18 01:05:30 +02:00
Benjamin Eberlei
42c5382a03
DDC-1172 - Handle sequence dropping in SchemaTool.
2011-06-16 22:34:04 +02:00
Fabien Potencier
b37c8f6a23
Update Symfony2 vendors
2011-06-14 17:01:33 +02:00
Benjamin Eberlei
12dfb5ee38
Merge pull request #67 from Nico-B/master
...
joinTable error with DB to YML generator
2011-06-12 13:09:32 -07:00
Bertrand Zuchuat
c7eaf77d15
Renamed function getFullName with getName to match with last change on Symfony Console
2011-06-12 14:46:02 +02:00
NicoB
524c799e37
Merge remote-tracking branch 'remotes/upstream/master'
2011-06-11 17:56:50 +07:00
Benjamin Eberlei
fe527fbf1a
Merge pull request #59 from asm89/databasedriver-patch
...
Implemented tableName -> className and columnName -> fieldName mapping in DatabaseDriver.
2011-06-11 03:15:16 -07:00
Benjamin Eberlei
037daff891
Merge pull request #65 from weaverryan/update_command
...
[Tools][Console] Refactoring the UpdateCommand
2011-06-11 01:16:25 -07:00
Benjamin Eberlei
9945296472
Merge pull request #61 from stof/EntityGenerator_3
...
Updated the EntityGenerator to be compatible with Common 3.0.x
2011-06-11 01:13:05 -07:00
NicoB
3cdb4e007d
joinTable can be undefined because ManyToMAny generation is bidirectional with inverse sides
2011-06-07 18:55:52 +07:00
Benjamin Eberlei
3cdff65761
Merge pull request #63 from chesteroni/master
...
Added missing checks for associatation indexes
2011-06-05 03:28:52 -07:00
Benjamin Eberlei
ff30f86082
Merge pull request #62 from mvrhov/yml_export_notice_fix
...
Fixing Notice: Undefined index in yaml export driver
2011-06-05 03:28:31 -07:00
Fabien Potencier
86c3744b8c
Made orm:convert-mapping command more configurable (allow to change the extension of the generated files for instance)
2011-06-05 08:23:08 +02:00
Ryan Weaver
6468740915
[Tools][Console] Reworking changes to be more backwards compatible
...
This keeps the --dump-sql and --force options, but adds an exception if you try to use them both (which previously, only dumped the SQL but didn't tell you that it was *not* in fact also executing the queries).
One additional change is the introduction of a `$name` property, which was the only way that a parent task could allow a child task to override the task's name early enough that the task's overridden name is taken to account when the parent class references it for its help message.
2011-06-03 15:09:18 -05:00
Ryan Weaver
79643e32ed
[Tools][Console] Refactoring the UpdateCommand
...
There are two basic changes:
1) Changed --force and --dump-sql from options to a single argument. Prior, you couldn't pass both options simultaneously anyways, so making them an argument is more accurate.
2) Changed the language and formatting of the task to be more user-friendly.
2011-06-03 08:02:51 -05:00
Alexander
7ee8dc4e44
DDC-1179 - Make it possible to specify a namespace when mapping with --from-database
2011-06-02 21:45:03 +02:00
chesteroni
23540c17f1
Added checking for existing indexes in associatation mapping array.
2011-05-28 20:57:19 -07:00
Miha Vrhovnik
bb873826ca
Fixing Notice: Undefined index: orderBy in ...Doctrine/ORM/Tools/Export/Driver/YamlExporter
2011-05-27 08:43:29 +02:00
Christophe Coevoet
693fc090b5
Updated the EntityGenerator to be compatible with Common 3.0.x
2011-05-25 12:35:54 +02:00
Benjamin Eberlei
d45f7c1302
DDC-694 - Add info command
2011-05-15 20:18:31 +02:00
Benjamin Eberlei
cb3615ab47
DDC-1151 - Fix missing table quotes when adding foreign keys in SchemaTool
2011-05-14 08:44:19 +02:00
Benjamin Eberlei
814473c27d
Merge pull request #35 from brikou/master
...
[DDC-1136] prevent backup file to be recognized as valid Entity file
2011-05-12 05:41:31 -07:00
Bertrand Zuchuat
b959ab37bf
Typo
2011-05-08 13:57:08 +02:00
Benjamin Eberlei
6b3dfaccfc
DDC-1102 - Typo in EntityGenerator
2011-05-01 10:01:38 +02:00
Fabien Potencier
0c955fe54f
Fix namespace/class parsing in the entity generator
2011-04-30 23:51:22 +02:00
Benjamin Eberlei
5179ff921b
[DBAL-115] REALLY fix issues with SchemaTool::getDropSchemaSQL().
2011-04-30 17:16:34 +02:00
Benjamin Eberlei
1f665e6ba8
[DBAL-115] Bugfix in SchemaTool not quoting table names when dropping schema.
2011-04-30 16:20:14 +02:00
Guilherme Blanco
7aaecacc5b
Merged pull request #36 from ajessu/fixTypo.
...
Fix typos on the help text of the schema commands
2011-04-26 18:12:32 -07:00
Guilherme Blanco
f73c7f3be0
Merged pull request #48 from rdohms/master.
...
Fixing docblocks in SchemaTool
2011-04-26 18:05:59 -07:00
Guilherme Blanco
fe66d8bc04
Fixed SchemaTool which was failing to dropSchema due to foreignKeyContraint checks. Fixes DDC-1126
2011-04-26 12:32:04 -03:00
Rafael Dohms
0b7feb359d
Fixing outdated docblocks for SchemaTool
2011-04-17 23:39:59 -03:00
brikou
9a8e8ce35d
Edited lib/Doctrine/ORM/Tools/EntityGenerator.php via GitHub
2011-03-15 05:39:38 -07:00
Albert Jessurum
234d2e5f0f
Fix typo on schema help messages
2011-03-15 12:22:53 +01:00
Benjamin Eberlei
35a152318e
DDC-1030 - Fix Static Reflection with namespace levels deeper than one.
2011-02-13 10:02:18 +01:00
Benjamin Eberlei
c456f27f60
DDC-1024 - Do not generate setter/getter for inherited fields.
2011-02-12 17:40:07 +01:00
Benjamin Eberlei
4122abf558
DDC-1008, DDC-1002 - Create constructor and id setter if necessary.
2011-02-02 23:30:16 +01:00
Benjamin Eberlei
f9c1464879
DDC-1006, DDC-953 - Fix EntityGenerator creating empty classes
2011-02-02 23:21:42 +01:00
Benjamin Eberlei
05f41278a6
Significantly updated the Help of the ConvertMapping and GenerateEntities Commands to help people using and understanding their scope. Added an additional --force flag to ConvertMapping command.
2011-01-23 20:25:59 +01:00
Benjamin Eberlei
a6e63d2676
DDC-969 - Use of field instead of column when accessing a table leads to error when both differ.
2011-01-23 16:12:26 +01:00
Benjamin Eberlei
03698e4068
DDC-975 - Fix notice in SchemaTool in combination with XML mapping driver.
2011-01-13 21:43:33 +01:00
Benjamin Eberlei
78d4277e4b
Merge branch DDC-117 into master
2011-01-02 12:01:05 +01:00
Benjamin Eberlei
c1edd5848f
DDC-966 - Fix NOT NULL constraint SingleTableInheritance Generation using SchemaTool.
2011-01-02 10:18:02 +01:00
Benjamin Eberlei
194a90923d
DDC-117 - Finalize patch, fix all the problems of different use-cases by hugely expanding the test-model.
2011-01-01 18:17:19 +01:00
Benjamin Eberlei
2d27a99a0b
DDC-117 - Began to fix some issues surrounding the DDC-881 report and references to composite fk entities.
2010-12-29 01:02:21 +01:00
Benjamin Eberlei
e7b4dca611
Merge master into DDC-117
2010-12-28 17:27:47 +01:00
Benjamin Eberlei
1d2b2b2c8b
DDC-928 - Fix undefined variable notice.
2010-12-28 12:18:42 +01:00
Benjamin Eberlei
a4f88407c2
DDC-931 - SchemaTool#dropSchema() should not stop on failure of a single query (as stated in docblocks).
2010-12-22 22:04:11 +01:00
Benjamin Eberlei
1daf658ec6
DDC-917 - Skip Mapped Superclasses in the Drop Sequence Loop in SchemaTool.
2010-12-08 23:36:15 +01:00
Benjamin Eberlei
ef50d940de
CleanUp in SchemaTool.
2010-12-08 21:21:00 +01:00
Jonathan H. Wage
054f26c0a7
Fixing issue with change to ClassMetadataFactory constructor and ConvertMappingCommand.
2010-12-03 11:44:22 -06:00
Fabien Potencier
892eec2f26
Update Symfony\Component\Console to latest version
2010-11-30 02:45:04 +08:00
Benjamin Eberlei
796b62cd2c
DDC-897 - Fix DisconnecetdClassMetadataFactory with regards to namespace setting, now inferred from the FQCN.
2010-11-27 22:17:55 +01:00
Benjamin Eberlei
dff5dae416
DDC-897 - Make ClassMetadataFactory configurable.
2010-11-27 20:53:26 +01:00
Benjamin Eberlei
7196999b69
DDC-895 - Fix Generated XML from XMLExporter and remove silly formatting xml code used on SimpleXML by just stuffing it into DOMDocument with formatOutput=true.
2010-11-27 20:32:14 +01:00
Benjamin Eberlei
51922a1ff0
DDC-855 - Fix EntityGenerator annoyance when run successive times.
2010-11-27 19:57:37 +01:00
Benjamin Eberlei
e142bd1f30
Merge and modify juokazs Sqlsrv changes
2010-11-18 23:14:07 +01:00
Benjamin Eberlei
97b80d69f1
Fix several test-issues after upgrading dependencies and a Bug in a SchemaTool and DatabaseDriver
2010-11-18 23:07:32 +01:00
Juozas Kaziukenas
ec50125568
Fix for foreign keys and autoincrement
2010-11-17 14:07:05 -08:00
Benjamin Eberlei
ae76b2ab8d
DDC-853, DDC-629 - Fix drop schema always dropping everything at the cost of potential failures when dropping due to foreign keys. Added a full-database drop mode that resembles the old behavior.
2010-11-16 21:31:54 +01:00
Benjamin Eberlei
53e8b8f32d
DDC-868 - Fix bug where a ClassMetadata instance from a STI child level is processed before the parent.
2010-11-09 22:13:35 +01:00
Benjamin Eberlei
338476805d
DDC-830 - Fix extended class in EntityGenerator
2010-10-30 09:16:55 +02:00
Benjamin Eberlei
394c67d482
Fix DDC-672
2010-10-06 22:18:48 +02:00
Benjamin Eberlei
de236e0456
DDC-784 - Implement doctrine CLI for Windows and refactor CLI stuff in general
2010-09-30 20:57:14 +02:00
Benjamin Eberlei
394469d4b7
DDC-525 - Single Table Inheritance fields of child entities ALWAYS have to be nullable, Schema-Tool now enforces this.
2010-09-27 23:22:52 +02:00
beberlei
039293c27a
DDC-816 - Fix output of warning message in update and drop schema-tool commands
2010-09-25 12:12:19 +02:00
Benjamin Eberlei
62a8e2aad5
Enhance Schema-Tool commands by being more aggresive on warning the user that these commands do stuff that can be potentially dangerous to the database (and its contents).
2010-09-21 22:08:29 +02:00
Guilherme Blanco
2e3c1506fb
[DDC-792] Fixed issue with run-dql when using max result was triggering undefined method error.
2010-09-15 14:29:55 -03:00
Guilherme Blanco
4845745337
[DDC-802] Fixed wrong variable reference in XML exporter.
2010-09-15 14:16:53 -03:00
Benjamin Eberlei
4727489134
DDC-761 - Fix join columns not using the same lengh, precision and scale for string and decimal types.
2010-09-12 22:34:32 +02:00
Benjamin Eberlei
7ff9976b3c
Made using schema-tool:drop and schema-tool:update more secure by requiring the user to confirm the operation with another flag --force.
2010-08-31 23:42:27 +02:00
beberlei
c77a12ac83
DDC-770 - Refactored EntityGenerator Bugfix NOT to generate a use statement. Simplifies code and circumvents further problems (like importing a class from the namespace we are in)
2010-08-28 16:29:08 +02:00
beberlei
2a2936fde5
DDC-771 - Bugfix in EntityGenerator generated use statement
2010-08-28 14:54:31 +02:00
Benjamin Eberlei
5bd8ffa53c
Merge master into DDC-117
2010-08-27 22:27:00 +02:00
Benjamin Eberlei
d115f7af4f
DDC-752 - Postpone Inheritance Related Metadata Validation into CMF
2010-08-27 22:14:48 +02:00
Sébastien HOUZE
4a9f36800e
Symfony/Components renamed into Symfony/Component
2010-08-23 12:39:30 -05:00
Benjamin Eberlei
1496250833
Merge branch 'master' into DDC-117
2010-08-15 20:17:56 +02:00
Roman S. Borschel
d56d118458
Fixed field access.
2010-08-14 19:10:28 +02:00
Benjamin Eberlei
e45c52b024
Merge Removal of association classes into DDC-117 branch, quite some merge efforts necessary to get it working again
2010-08-13 23:23:11 +02:00
Benjamin Eberlei
98785122d3
DDC-562 - Finally able to generate Unique Constraint on @OneToOne foreign keys
2010-08-10 22:07:43 +02:00
Roman S. Borschel
8d3e0e61ea
Moved association mappings to plain arrays, just like field mappings.
2010-08-09 22:48:07 +02:00
Benjamin Eberlei
21753c71c9
DDC-651 - Fix short name being used instead of long-name in extends section of EntityGenerator
2010-08-08 16:43:52 +02:00
Benjamin Eberlei
7b07a17886
Merge branch 'master' into DDC-117
2010-08-08 14:07:24 +02:00
Benjamin Eberlei
9347263a43
DDC-709 Add further validation for @OrderBy field names on target entities
2010-08-08 11:39:44 +02:00
Benjamin Eberlei
c697a2d47f
Prototype hack of @ManyToOne + @Id support with two test-scenarios, composite association key only composite key, and a mixed key scenario. I think single foreign association would work also
2010-08-07 19:33:54 +02:00
Benjamin Eberlei
86e24d373b
DDC-723 - Update ORM to depend on latest DBAL Beta3 release, fixed Schema-Tool errors - Use git submodule update to get the latest code
2010-07-28 20:20:47 +02:00
Benjamin Eberlei
c0d26b97dd
DDC-596 - Added validation of inheritance hierachies
2010-07-10 09:13:02 +02:00
beberlei
178f35aaa1
Merge remote branch 'origin/DDC-597'
2010-07-01 19:43:15 +02:00
Benjamin Eberlei
afd4121116
DDC-611 - Throw an exception if trying to clear an APC Cache from the CLI since there is no access to the webserver shared memory (thanks Romain Dalmaso for reporting)
2010-06-28 23:36:09 +02:00
Benjamin Eberlei
51e6681934
DDC-646 - Bugfix with missing inclusion of Namespace, added test for ConvertDoctrine1SchemaCommand
2010-06-20 00:28:20 +02:00
Jonathan H. Wage
20c1ff3146
[DDC-642] Fixes issue with exporters not including inversedBy functionality
2010-06-16 11:47:22 -04:00
Jonathan H. Wage
e6f465ec80
[DDC-641] Fixing issue with XmlExporter cascade options
2010-06-16 11:19:26 -04:00
Christian Heinrich
45ec58fc7e
Updated message and added behaviour for public static vars
...
Signed-off-by: David Abdemoulaie <dave@hobodave.com>
2010-05-23 09:59:12 -05:00
Christian Heinrich
773f56bef2
Fixed #DDC-597
...
Added a test on public properties in entities. I did not check whether these properties are actually mapped to a column because personally, I believe that within an entity, there should only be protected / private members.
Signed-off-by: David Abdemoulaie <dave@hobodave.com>
2010-05-23 09:59:12 -05:00
Benjamin Eberlei
74df4c39dc
DDC-592 - Fix Validator notices when mappedBy or inversedBy properties dont exist
2010-05-15 20:54:22 +02:00
Jonathan H. Wage
464accecfe
Fixing wrong variable name.
2010-05-14 12:33:17 -04:00
Benjamin Eberlei
e62b51cf38
DDC-515 - Deleted obsolte SchemaValidatorCommand (we already had a ValidatorSchemaCommand)
2010-05-12 23:42:48 +02:00
Benjamin Eberlei
d9969901e1
DDC-515 - Fixed some issues with Schema Validation Command
2010-05-12 23:41:28 +02:00
Benjamin Eberlei
57cd2e01bb
DDC-515 - Fixed a notice occuring in certain scenarios of the new Validate Schema Tool
2010-05-11 23:12:26 +02:00
Benjamin Eberlei
d00f674a08
DDC-515 - Enhanced Validate-Schema-Command, integrated it with CLI and besides mapping<->database checks also do consistency checks of the mapping files
2010-05-11 23:08:36 +02:00
Jonathan H. Wage
de72db2a7a
Fixing xml schema generation for code completion in ides
2010-04-28 11:39:47 -04:00
Benjamin Eberlei
0f7d71cac4
Merge commit 'dc2master/master'
2010-04-27 19:28:34 +02:00
Benjamin Eberlei
fab5ef8429
DDC-515 - First version of a validate mapping command
2010-04-17 08:47:40 +02:00
Jonathan H. Wage
59f3fe3a40
Fixing code style issue
2010-04-16 13:20:46 -04:00
Jonathan H. Wage
c6d784abc5
Fixing ORMException
2010-04-14 20:42:39 -04:00
Jonathan H. Wage
c43740c08a
Fixing EntityRepositoryGenerator to not generate the repository if it already exists
2010-04-14 20:42:17 -04:00
Jonathan H. Wage
b2eeac5640
Fixing strict standards notice
2010-04-14 20:41:41 -04:00
Jonathan H. Wage
2f6f8587b5
Fixing changed method names
2010-04-14 20:40:12 -04:00
Jonathan H. Wage
89c71138e6
Fixing changed method names
2010-04-14 20:39:51 -04:00
Jonathan H. Wage
be4d158b2c
Merge remote branch 'upstream/master'
2010-04-14 15:24:14 -04:00
Jonathan H. Wage
4d758035cc
Extracting repository generation code to standalone class so it can be re-used
2010-04-14 15:19:48 -04:00
Jonathan H. Wage
32a81f09d1
Fixing generate-repositories command so it works again after migration to Symfony console
2010-04-14 14:32:47 -04:00
Jonathan H. Wage
146b22a1a5
Making 2nd argument of getExporter() optional again
2010-04-14 14:18:10 -04:00
Jonathan H. Wage
ac4e33d056
Fixing issue with EntityGenerator spaces
2010-04-14 14:17:55 -04:00
Jonathan H. Wage
3afc8f794a
Throw exception when entity generator is not set
2010-04-14 14:17:09 -04:00
Jonathan H. Wage
d150f8a6f7
Fixing issue with 4 spaces being hardcoded and not replaced with the configured amount of spaces
2010-04-14 11:21:39 -04:00
Roman S. Borschel
f3c672a2e5
Merged from upstream/master.
2010-04-14 17:21:15 +02:00
Roman S. Borschel
d4232d906e
[DDC-388] Fixed.
2010-04-14 17:07:08 +02:00
Jonathan H. Wage
ceb05e85ef
Removing ClassMetadataReader
2010-04-14 10:31:50 -04:00
Jonathan H. Wage
bce7ebfcc3
Fixing convert-mapping task to use the DisconnectedClassMetdataFactory
2010-04-13 18:58:43 -04:00
Jonathan H. Wage
45969840f0
Fixing class description
2010-04-13 18:22:08 -04:00
Jonathan H. Wage
5cfe9e1d94
Introducing DisconnectedClassMetadataFactory that will replace the need for ClassMetadataReader
2010-04-13 18:20:41 -04:00
Jonathan H. Wage
12c9ca971b
Merge remote branch 'origin/master'
2010-04-13 14:14:02 -04:00
Jonathan H. Wage
97e29e00a7
Fixing orm:generate-proxies command to create the destination direction if it does not exist yet
2010-04-13 14:12:44 -04:00
Jonathan H. Wage
10aaf93c44
Fixing ensure-production-settings task to not throw an exception and instead use the Output object to output an error
2010-04-13 14:12:13 -04:00
Jonathan H. Wage
0f4ba3b875
Fixing issue with orm:convert-mapping task and dest-path that does not exist yet as well when reverse engineering from-database
2010-04-13 14:11:21 -04:00
Jonathan H. Wage
c81b770a0d
Fixing issue with orm:clear-cache:result command after the migration to Symfony console
2010-04-13 14:10:12 -04:00
Guilherme Blanco
b6f9cd0c07
[2.0][DDC-503] Added missing IdGeneratorType.
2010-04-12 21:54:43 -03:00
Benjamin Eberlei
4cf5b7afdc
DDC-510 Move Exception for no Metadata Driver from Configuration to EntityManager::create, commit missing MetadataFilter
2010-04-11 10:51:31 +02:00
Benjamin Eberlei
700060cfb2
DDC-510 Refactored all Command Tools to use ClassMetadataFactory instead of ClassMetadataReader
2010-04-11 09:30:01 +02:00
Benjamin Eberlei
6e5b1bbe60
DDC-510 - Refactored Metadata Driver to be an required option, even for Annotations - allowing to use the specified paths in ORM Tooling Commands
2010-04-10 17:35:18 +02:00
Benjamin Eberlei
b2fe3820fc
DDC-502, DDC-507 - Changes to how Annotation Metadata Driver is handled in SchemaTool Command, Specifiying Mapping paths is now required for this to work.
2010-04-10 12:31:48 +02:00
Benjamin Eberlei
5d329d7e2c
DDC-502, DDC-507 - Fix refactorings to work with Annotations Driver also
2010-04-10 11:38:45 +02:00
Benjamin Eberlei
a7d07fcdba
DDC-502, DDC-507 - Refactored SchemaTool Commands
2010-04-10 11:38:34 +02:00
Guilherme Blanco
e4d8efa394
[2.0] Couple of fixes to new Console implementation
2010-04-09 00:53:29 -03:00
Guilherme Blanco
5854bcab11
[2.0] Added new Console support
2010-04-08 00:47:42 -03:00
Guilherme Blanco
45de5c6932
[2.0] Removed old CLI support.
2010-04-08 00:30:11 -03:00
guilhermeblanco
c9de54b4a2
[2.0] Changed Connection::execute() to Connection::executeQuery() as defined as a todo.
2010-03-31 21:13:34 +00:00
romanb
354ede1e04
[2.0][DDC-354][DDC-425] Fixed. Encapsulated SQL logging better in the DBAL. Added binding types to DBAL mapping types as well as using these binding types in the persisters. Query and NativeQuery now support PDO binding types as well as DBAL mapping types when binding parameters.
2010-03-29 13:20:41 +00:00
guilhermeblanco
7014188654
[2.0][DDC-476] Fixed description of convert-10-schema. Thanks for the report
2010-03-28 23:25:28 +00:00
guilhermeblanco
45d1e2005b
[2.0] More fixes to EntityGenerator. Coding standard fixes and improved error reporting on invalid arguments provided.
2010-03-28 22:56:59 +00:00
guilhermeblanco
3a58e14419
[2.0] Fixed issue with namespaces of entities in EntityGenerator
2010-03-28 22:29:29 +00:00
jwage
21c1952b89
[2.0][DDC-464] Fixes issue with EntityGenerator and the class extends syntax
2010-03-28 17:46:23 +00:00
jwage
2397925623
[2.0][DDC-462] Adding missing use statement
2010-03-24 15:33:40 +00:00
jwage
0b68e9473d
[2.0][DDC-449] Fixing issue with ClassMetadataReader and existing driver sources being added
2010-03-24 15:31:54 +00:00
guilhermeblanco
b2167985ad
[2.0][DDC-274] Fixing Coding Standards for CLI tool.
2010-03-24 02:37:45 +00:00
jwage
f34a99ccce
[2.0] Fixing hardcoded dependency to EntityGenerator
2010-03-20 03:48:58 +00:00
jwage
655361427c
[2.0] Fixing issue with EntityGenerator and spaces/formatting
2010-03-19 22:47:34 +00:00
jwage
42c5562874
[2.0] Improving EntityGenerated: added normal doc blocks above annotations(even if annotations aren't generated), adding type hinting, added generation of default values for properties
2010-03-19 22:38:45 +00:00
jwage
583d276553
[2.0] Removing old unused files
2010-03-19 04:23:00 +00:00
jwage
089b5dd88a
[2.0] Refactoring code for reading multiple sources of mapping information from ClassMetadataExporter to a new ClassMetadataReader tool so it can be used to read mapping information easily from multiple different sources. This is used for generating repositories, converting mapping information, generating entity stubs, etc. Generally though, it is useful to be able to read the information for some mapping files into an array of ClassMetadataInfo instances without it being bound to the ORM and the metadata referenced by the EntityManager ClassMetadataFactory
2010-03-19 04:19:15 +00:00
beberlei
b25d5d277d
[2.0] DDC-283 - Add two events in SchemaTool that allow to hook into the generated Schema representation, possibly modifying or reacting to it in userland or extensions code.
2010-03-18 22:36:27 +00:00
jwage
c6678a0f4a
[2.0] Renaming orm:generate-entity-stubs to orm:generate-entities to be consistent and fixed a few bugs
2010-03-18 22:35:16 +00:00
jwage
49c73d5682
[2.0] Refactoring AnnotationExporter code to a EntityGenerator tool which is used now in orm:convert-mapping to generate annotated entities and also used in orm:generate-entity-stubs for generating entity classes and properties/method stubs from mapping information
2010-03-18 21:38:42 +00:00
jwage
6950bcaa5e
[2.0] Extracting Doctrine 1 schema conversion from orm:convert-mapping task to a orm:convert-d1-schema task
2010-03-17 22:33:25 +00:00
jwage
770d00abe9
[2.0] Improving test coverage for mapping exporters as well as adding missing functionality
2010-03-17 21:25:19 +00:00
jwage
e06f7c981d
[2.0] Updating Symfony Yaml component to PHP 5.3 version
2010-03-16 23:03:29 +00:00
jwage
a25c704246
[2.0] Fixing PhpDriver and covering it with tests
2010-03-16 22:41:09 +00:00
jwage
584491d462
[2.0] Fixing issue with converting mapping from annotations to other sources
2010-03-16 19:55:25 +00:00
romanb
a53c2fbd6c
[2.0] Code cleanups. Preparations for DDC-193. Fixed DDC-399, type configuration remains global for now but the irritating instance methods on the Configuration have been removed. Use Type::addType et al. Added TODOs for naming standards.
2010-03-15 17:19:00 +00:00
beberlei
6bcaafe17b
[2.0] DDC-420 - Fix annotation exporter repositoryClass
2010-03-14 17:15:43 +00:00
jwage
13ad526833
[2.0] Fixing issue with comparing paths when they are not the realpath
2010-03-11 14:49:44 +00:00
guilhermeblanco
b2cf2e2072
[2.0] Added custom Entity repository, DiscriminatorColumn and DiscriminatorMap upport in AnnotationExporter
2010-03-09 02:54:07 +00:00