Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 144 lines (88 sloc) 6.035 kB
b173d16 @hhamon Updated UPDATE.md file to keep track of API changes.
hhamon authored
1 # List of Backwards Incompatible Changes
2
3 ## Tasks become Commands... and change names
4
5 The Phing tasks that you used at buildtime are now refactored to Commands using the Symfony2 Command component. They work the same, but their name has changed.
6
59eac43 @hhamon Fixed typo in UPDATE.md file
hhamon authored
7 Replace... With...
b173d16 @hhamon Updated UPDATE.md file to keep track of API changes.
hhamon authored
8 build-model model:build
9 build-sql sql:build
10 insert-sql sql:insert
11 convert-conf config:convert-xml
12 diff [not yet refactored]
13 status migration:status
14 migrate [not yet refactored]
15 up migration:up
16 down migration:down
17 reverse [not yet refactored]
18
19 ## `Propel\Runtime\Propel` methods renamed.
20
21 Some static methods from the `Propel` class have been renamed. Therefore, you must replace the following occurrences in your code:
22
23 Replace... With...
24 Propel::CONNECTION_WRITE ServiceContainerInterface::CONNECTION_WRITE
25 Propel::CONNECTION_READ ServiceContainerInterface::CONNECTION_READ
26 Propel::getDB($name) Propel::getAdapter($name)
27 Propel::getConnection($name, Propel::CONNECTION_READ) Propel::getReadConnection($name)
28 Propel::getConnection($name, Propel::CONNECTION_WRITE) Propel::getWriteConnection($name)
29 Propel::getDefaultDB() Propel::getDefaultDatasource()
30
31 The generated model is automatically updated once you rebuild your model.
32
33 >**Tip**: Internally, `Propel::getAdapter()` proxies to `Propel::getServiceContainer()->getAdapter()`. The `Propel` class was refactored to keep only one static class and to be more extensible. It remains the easy entry point to all the necessary services provided by Propel.
34
35 `Propel::setConnection()` is removed. As for `Propel::init($configFilePath)`, where `$configFilePath` is the path to the PHP configuration generated by the `config:convert-xml` command, you can now replace it with `include $configFilePath`.
36 ## Builders renamed
37
38 The classes used by Propel internally to build the object model were renamed. This affects your project if you extended one of these classes.
39
40 Replace... With...
41 OMBuilder.php AbstractOMBuilder.php
42 ObjectBuilder.php AbstractObjectBuilder.php
43 PeerBuilder.php AbstractPeerBuilder.php
44 PHP5ExtensionObjectBuilder.php ExtensionObjectBuilder.php
45 PHP5ExtensionPeerBuilder.php ExtensionPeerBuilder.php
46 PHP5InterfaceBuilder.php InterfaceBuilder.php
47 PHP5MultiExtendObjectBuilder.php MultiExtendObjectBuilder.php
48 PHP5ObjectBuilder.php ObjectBuilder.php
49 PHP5PeerBuilder.php PeerBuilder.php
50 PHP5TableMapBuilder.php TableMapBuilder.php
51
52 ## Base classes reorganized
53
54 Base classes are generated in a `Base` directory, and base classes are no more prefixed by `Base`.
55
56 Parameters `basePrefix` and `namespaceOm` have been removed
57
58 ## `Propel\Generator\Model\Database` methods renamed.
59
60 Before:
61
62 public function setAppData(AppData $parent)
63
64 After:
65
e2b94c8 @hhamon [Generator] renamed set/getMappingSchema to set/getParentSchema in Da…
hhamon authored
66 public function setParentSchema(Schema $parent)
b173d16 @hhamon Updated UPDATE.md file to keep track of API changes.
hhamon authored
67
68 Before:
69
70 public function getAppData()
71
72 After:
73
e2b94c8 @hhamon [Generator] renamed set/getMappingSchema to set/getParentSchema in Da…
hhamon authored
74 public function getParentSchema()
b173d16 @hhamon Updated UPDATE.md file to keep track of API changes.
hhamon authored
75
76 ## `Propel\Generator\Model\AppData` class has been renamed to `Schema`.
77
78 The `AppData::joinAppDatas` method has been renamed to `Schema::joinSchemas`.
79
80 Before:
81
82 public function joinAppDatas($ads)
83
84 After:
85
86 public function joinSchemas($schemas)
87
88 ## `Propel\Generator\Builder\Util\XmlToAppData` class has been renamed to `SchemaReader`.
89
90 Both `SchemaReader::parseString` and `SchemaReader::parseFile` methods return
91 a `Propel\Generator\Model\Schema` object instead of a `Propel\Generator\Model\AppData` object.
92
93 ## `Propel\Generator\Util\SchemaValidator` constructor signature changed.
94
95 Before:
96
97 public function __construct(AppData $appData)
98
99 After:
100
101 public function __construct(Schema $schema)
dba71a5 @hhamon [Generator] [Model, Behavior] removed deprecated Table::containsColum…
hhamon authored
102
103 ## `Propel\Generator\Model\Table::containsColumn` method has been removed.
104
268f44d @hhamon [Generator] [Model] added high unit test coverage for Generator\Model…
hhamon authored
105 ## `Propel\Generator\Model\VendorInfo::addParameter` method has been removed.
106
107 ## `Propel\Generator\Model\Column::setTypeFromString` method has been removed.
108
109 ## `Propel\Generator\Model\Column::getPropelType` method has been removed.
110
111 ## `Propel\Generator\Model\Column::getDefaultSetting` method has been removed.
112
113 ## `Propel\Generator\Model\Column::makeList` method has been removed.
114
115 ## `Propel\Generator\Model\Column::printSize` method has been renamed to `Propel\Generator\Model\Column::getSizeDefinition`.
116
117 ## `Propel\Generator\Model\ForeignKey::getLocalColumnNames` method has been removed.
118
119 ## `Propel\Generator\Model\ForeignKey::getForeignColumnNames` method has been removed.
120
121 ## `Propel\Generator\Model\Domain::printSize` method has been renamed to
122 `Propel\Generator\Model\Domain::getSizeDefinition`.
123
124 ## `Propel\Generator\Model\Table::printPrimaryKey` method has been removed.
125
126 ## `Propel\Generator\Model\Table::printList` method has been removed.
127
128 ## `Propel\Generator\Model\PropelTypes::getCreoleTypes` method has been removed.
eac8f2c @hhamon Renamed XmlElement class to MappingModel
hhamon authored
129
130 ## `Propel\Generator\Model\ScopedElement` class has been renamed to `Propel\Generator\Model\ScopedMappingModel`.
131
132 ## `Propel\Generator\Model\XmlElement` class has been renamed to `Propel\Generator\Model\MappingModel`.
133
e95de32 @jaugustin add update information
jaugustin authored
134 ## `Propel\Generator\Model\XmlElement::loadFromXml` method has been renamed to `Propel\Generator\Model\MappingModel::loadMapping`.
135
136 ## `Propel\Runtime\Om\BaseObject` class has been removed.
137
138 All base object methods have been merged in generated Base Object classes.
139 This could break, behaviors that call `parent` methods
140
141 ## `Propel\Runtime\Om\Persistent` Interface replaced by `Propel\Runtime\Om\ActiveRecordInterface`
142
143 All methods from `Propel\Runtime\Om\Persistent` Interface have been removed
144 All Base Object classes now implements `Propel\Runtime\Om\ActiveRecordInterface` this could be use to identify a Propel Object
Something went wrong with that request. Please try again.