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