Skip to content

Commit 45d025e

Browse files
authored
Merge pull request #1612 from spryker/cleanup
Cleanup PHP versioning mentioned.
2 parents bf06931 + a0ccfd7 commit 45d025e

15 files changed

+19
-23
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "propel/propel",
33
"type": "library",
4-
"description": "Propel2 is an open-source Object-Relational Mapping (ORM) for PHP 5.5 and up.",
4+
"description": "Propel2 is an open-source Object-Relational Mapping (ORM) for PHP.",
55
"keywords": [
66
"ORM",
77
"persistence",

resources/xsd/database.xsd

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -646,7 +646,7 @@
646646
<xs:attribute name="namespace" type="php_namespace" use="optional">
647647
<xs:annotation>
648648
<xs:documentation xml:lang="en">
649-
The PHP 5.3 namespace to use for the generated model classes.
649+
The PHP namespace to use for the generated model classes.
650650
</xs:documentation>
651651
</xs:annotation>
652652
</xs:attribute>
@@ -844,7 +844,7 @@
844844
<xs:attribute name="namespace" type="php_namespace" use="optional">
845845
<xs:annotation>
846846
<xs:documentation xml:lang="en">
847-
The PHP 5.3 namespace to use for the generated model classes of the database. Can be overridden on a per-table basis.
847+
The PHP namespace to use for the generated model classes of the database. Can be overridden on a per-table basis.
848848
</xs:documentation>
849849
</xs:annotation>
850850
</xs:attribute>

src/Propel/Generator/Builder/Om/AbstractObjectBuilder.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ abstract class AbstractObjectBuilder extends AbstractOMBuilder
2626
/**
2727
* Adds the getter methods for the column values.
2828
* This is here because it is probably generic enough to apply to templates being generated
29-
* in different languages (e.g. PHP4 and PHP5).
29+
* in different PHP versions.
3030
* @param string &$script The script will be modified in this method.
3131
*/
3232
protected function addColumnAccessorMethods(&$script)
@@ -73,7 +73,7 @@ protected function addColumnAccessorMethods(&$script)
7373
/**
7474
* Adds the mutator (setter) methods for setting column values.
7575
* This is here because it is probably generic enough to apply to templates being generated
76-
* in different languages (e.g. PHP4 and PHP5).
76+
* in different PHP versions.
7777
* @param string &$script The script will be modified in this method.
7878
*/
7979
protected function addColumnMutatorMethods(&$script)

src/Propel/Generator/Builder/Om/ExtensionObjectBuilder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
namespace Propel\Generator\Builder\Om;
1212

1313
/**
14-
* Generates the empty PHP5 stub object class for user object model (OM).
14+
* Generates the empty stub object class for user object model (OM).
1515
*
1616
* This class produces the empty stub class that can be customized with application
1717
* business logic, custom behavior, etc.

src/Propel/Generator/Builder/Om/ExtensionQueryBuilder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
namespace Propel\Generator\Builder\Om;
1212

1313
/**
14-
* Generates the empty PHP5 stub class for object query
14+
* Generates the empty stub class for object query
1515
*
1616
* This class produces the empty stub class that can be customized with application
1717
* business logic, custom behavior, etc.

src/Propel/Generator/Builder/Om/ExtensionQueryInheritanceBuilder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
use Propel\Generator\Exception\BuildException;
1515

1616
/**
17-
* Generates the empty PHP5 stub query class for use with single table inheritance.
17+
* Generates the empty stub query class for use with single table inheritance.
1818
*
1919
* This class produces the empty stub class that can be customized with
2020
* application business logic, custom behavior, etc.

src/Propel/Generator/Builder/Om/InterfaceBuilder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
namespace Propel\Generator\Builder\Om;
1212

1313
/**
14-
* Generates the empty PHP5 stub interface for user object model (OM).
14+
* Generates the empty stub interface for user object model (OM).
1515
*
1616
* This class produces the empty stub interface when the interface="" attribute is used
1717
* in the the schema xml.

src/Propel/Generator/Builder/Om/MultiExtendObjectBuilder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
use Propel\Generator\Model\Inheritance;
1515

1616
/**
17-
* Generates the empty PHP5 stub object class for use with inheritance in the
17+
* Generates the empty stub object class for use with inheritance in the
1818
* user object model (OM).
1919
*
2020
* This class produces the empty stub class that can be customized with

src/Propel/Generator/Builder/Om/ObjectBuilder.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
use Propel\Runtime\Exception\PropelException;
2727

2828
/**
29-
* Generates a PHP5 base Object class for user object model (OM).
29+
* Generates a base Object class for user object model (OM).
3030
*
3131
* This class produces the base object class (e.g. BaseMyTable) which contains
3232
* all the custom-built accessor and setter methods.
@@ -1283,7 +1283,7 @@ protected function addSetAccessorBody(&$script, Column $column)
12831283
throw new PropelException('Unknown stored set key: ' . \$e->getValue(), \$e->getCode(), \$e);
12841284
}
12851285
}
1286-
1286+
12871287
return \$this->$cloConverted;";
12881288
}
12891289

@@ -6171,7 +6171,7 @@ protected function addSaveBody(&$script)
61716171
if (\$this->alreadyInSave) {
61726172
return 0;
61736173
}
6174-
6174+
61756175
if (\$con === null) {
61766176
\$con = Propel::getServiceContainer()->getWriteConnection(".$this->getTableMapClass()."::DATABASE_NAME);
61776177
}

src/Propel/Generator/Builder/Om/QueryBuilder.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
use Propel\Generator\Model\Table;
1818

1919
/**
20-
* Generates a PHP5 base Query class for user object model (OM).
20+
* Generates a base Query class for user object model (OM).
2121
*
2222
* This class produces the base query class (e.g. BaseBookQuery) which contains
2323
* all the custom-built query methods.
@@ -1092,7 +1092,7 @@ public function filterBy$colPhpName(\$$variableName = null, \$comparison = null)
10921092
\$this->add(\$key, \${$variableName}, Criteria::BINARY_NONE);
10931093
}
10941094
\$this->addOr(\$key, null, Criteria::ISNULL);
1095-
1095+
10961096
return \$this;
10971097
}";
10981098
} elseif ($col->getType() == PropelTypes::ENUM) {

src/Propel/Generator/Builder/Om/QueryInheritanceBuilder.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
use Propel\Generator\Model\Inheritance;
1515

1616
/**
17-
* Generates the empty PHP5 stub query class for use with single table
17+
* Generates the empty stub query class for use with single table
1818
* inheritance.
1919
*
2020
* This class produces the empty stub class that can be customized with
@@ -84,7 +84,7 @@ public function setChild(Inheritance $child)
8484
public function getChild()
8585
{
8686
if (!$this->child) {
87-
throw new BuildException("The PHP5MultiExtendObjectBuilder needs to be told which child class to build (via setChild() method) before it can build the stub class.");
87+
throw new BuildException("The MultiExtendObjectBuilder needs to be told which child class to build (via setChild() method) before it can build the stub class.");
8888
}
8989

9090
return $this->child;

src/Propel/Generator/Builder/Om/TableMapBuilder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
use Propel\Generator\Platform\PlatformInterface;
1717

1818
/**
19-
* Generates the PHP5 table map class for user object model (OM).
19+
* Generates the table map class for user object model (OM).
2020
*
2121
* @author Hans Lellelid <[email protected]>
2222
*/

tests/Propel/Tests/Helpers/Bookstore/BookstoreTestBase.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ abstract class BookstoreTestBase extends TestCaseFixturesDatabase
2424
*/
2525
protected static $isInitialized = false;
2626
/**
27-
* @var \PDO
27+
* @var \PDO|\Propel\Runtime\Connection\ConnectionWrapper
2828
*/
2929
protected $con;
3030

tests/Propel/Tests/Runtime/Map/GeneratedRelationMapTest.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@
1515
use Propel\Tests\TestCaseFixtures;
1616

1717
/**
18-
* Test class for PHP5TableMapBuilder.
19-
*
2018
* @author François Zaninotto
2119
*/
2220
class GeneratedRelationMapTest extends TestCaseFixtures

tests/Propel/Tests/Runtime/Map/GeneratedRelationMapWithSchemasTest.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@
1515
use Propel\Tests\TestCaseFixturesDatabase;
1616

1717
/**
18-
* Test class for PHP5TableMapBuilder with schemas.
19-
*
2018
* @author Ulf Hermann
2119
*
2220
* @group database

0 commit comments

Comments
 (0)