diff --git a/docs/guide/01-Installation.txt b/docs/guide/01-Installation.txt index 38385562b..78a36c0ba 100644 --- a/docs/guide/01-Installation.txt +++ b/docs/guide/01-Installation.txt @@ -27,13 +27,13 @@ Usually, both the generator and the runtime components are installed on developm === Installing Propel From PEAR === -In order to install the Propel packages, you must add the `pear.phpdb.org` channel to your PEAR environment. Once the channel is discovered, you can install the generator package, or the runtime package, or both. Use the '-a' option to let PEAR download and install dependencies. +In order to install the Propel packages, you must add the `pear.propelorm.org` channel to your PEAR environment. Once the channel is discovered, you can install the generator package, or the runtime package, or both. Use the '-a' option to let PEAR download and install dependencies. {{{ #!sh -> pear channel-discover pear.phpdb.org -> pear install -a phpdb/propel_generator -> pear install -a phpdb/propel_runtime +> pear channel-discover pear.propelorm.org +> pear install -a propelorm/propel_generator +> pear install -a propelorm/propel_runtime }}} Propel is now installed, and you can test it by following the instructions of the '''Testing Propel Installation''' section at the end of this page. @@ -66,7 +66,7 @@ Installing from SVN trunk ensures that you have the most up-to-date source code. {{{ #!sh -> svn checkout http://svn.phpdb.org/propel/branches/1.5 /usr/local/propel +> svn checkout http://svn.propelorm.org/branches/1.5 /usr/local/propel }}} This will export both the generator and runtime components to your local `propel` directory. In addition, you'll also get Propel documentation and unit tests - that's why this method is the preferred installation method for Propel contributors. @@ -84,9 +84,9 @@ Download a tarball of each of the Propel components from the Propel website, and > cd /usr/local > mkdir propel > cd propel -> wget http://pear.phpdb.org/get/propel_generator-1.5.0.tgz +> wget http://pear.propelorm.org/get/propel_generator-1.5.0.tgz > tar zxvf propel_generator-1.5.0.tgz -> wget http://pear.phpdb.org/get/propel_runtime-1.5.0.tgz +> wget http://pear.propelorm.org/get/propel_runtime-1.5.0.tgz > tar zxvf propel_runtime-1.5.0.tgz }}} @@ -123,7 +123,7 @@ In order to allow an easier execution the script, you can also: Propel requires that the runtime classes are in PHP `include_path`. -The easiest and most permanent way to set your `include_path` is to simply edit your `php.ini` file and add the `propel/runctime/classes/` directory to the `include_path` variable: +The easiest and most permanent way to set your `include_path` is to simply edit your `php.ini` file and add the `propel/runtime/classes/` directory to the `include_path` variable: {{{ ; Unix @@ -165,9 +165,13 @@ You can test that the '''Propel runtime''' component is properly installed by re {{{ #!php getPeerClassname()."::getPrimaryKeyHashFromRow(\$row, 0); if (null !== (\$obj = ".$this->getPeerClassname()."::getInstanceFromPool(\$key))) { // We no longer rehydrate the object, since this can cause data loss. - // See http://propel.phpdb.org/trac/ticket/509 + // See http://www.propelorm.org/ticket/509 // \$obj->hydrate(\$row, 0, true); // rehydrate \$results[] = \$obj; } else {"; @@ -1049,7 +1049,7 @@ public static function populateObject(\$row, \$startcol = 0) \$key = ".$this->getPeerClassname()."::getPrimaryKeyHashFromRow(\$row, \$startcol); if (null !== (\$obj = ".$this->getPeerClassname()."::getInstanceFromPool(\$key))) { // We no longer rehydrate the object, since this can cause data loss. - // See http://propel.phpdb.org/trac/ticket/509 + // See http://www.propelorm.org/ticket/509 // \$obj->hydrate(\$row, \$startcol, true); // rehydrate \$col = \$startcol + " . $this->getPeerClassname() . "::NUM_COLUMNS;"; if ($table->isAbstract()) { @@ -2039,7 +2039,7 @@ public static function doSelectJoin".$thisTableObjectBuilder->getFKPhpNameAffix( \$key1 = ".$this->getPeerClassname()."::getPrimaryKeyHashFromRow(\$row, 0); if (null !== (\$obj1 = ".$this->getPeerClassname()."::getInstanceFromPool(\$key1))) { // We no longer rehydrate the object, since this can cause data loss. - // See http://propel.phpdb.org/trac/ticket/509 + // See http://www.propelorm.org/ticket/509 // \$obj1->hydrate(\$row, 0, true); // rehydrate } else { "; @@ -2271,7 +2271,7 @@ public static function doSelectJoinAll(Criteria \$criteria, \$con = null, \$join \$key1 = ".$this->getPeerClassname()."::getPrimaryKeyHashFromRow(\$row, 0); if (null !== (\$obj1 = ".$this->getPeerClassname()."::getInstanceFromPool(\$key1))) { // We no longer rehydrate the object, since this can cause data loss. - // See http://propel.phpdb.org/trac/ticket/509 + // See http://www.propelorm.org/ticket/509 // \$obj1->hydrate(\$row, 0, true); // rehydrate } else {"; @@ -2542,7 +2542,7 @@ public static function doSelectJoinAllExcept".$thisTableObjectBuilder->getFKPhpN \$key1 = ".$this->getPeerClassname()."::getPrimaryKeyHashFromRow(\$row, 0); if (null !== (\$obj1 = ".$this->getPeerClassname()."::getInstanceFromPool(\$key1))) { // We no longer rehydrate the object, since this can cause data loss. - // See http://propel.phpdb.org/trac/ticket/509 + // See http://www.propelorm.org/ticket/509 // \$obj1->hydrate(\$row, 0, true); // rehydrate } else {"; if ($table->getChildrenColumn()) { diff --git a/generator/pear/BuildPropelGenPEARPackageTask.php b/generator/pear/BuildPropelGenPEARPackageTask.php index 4b48026ab..7511d5b5c 100644 --- a/generator/pear/BuildPropelGenPEARPackageTask.php +++ b/generator/pear/BuildPropelGenPEARPackageTask.php @@ -37,7 +37,8 @@ * @package phing.tasks.ext * @version $Revision$ */ -class BuildPropelGenPEARPackageTask extends MatchingTask { +class BuildPropelGenPEARPackageTask extends MatchingTask +{ /** Base directory for reading files. */ private $dir; @@ -51,15 +52,16 @@ class BuildPropelGenPEARPackageTask extends MatchingTask { /** Package file */ private $packageFile; - public function init() { + public function init() + { include_once 'PEAR/PackageFileManager2.php'; if (!class_exists('PEAR_PackageFileManager2')) { throw new BuildException("You must have installed PEAR_PackageFileManager2 (PEAR_PackageFileManager >= 1.6.0) in order to create a PEAR package.xml file."); } } - private function setOptions($pkg){ - + private function setOptions($pkg) + { $options['baseinstalldir'] = 'propel'; $options['packagedirectory'] = $this->dir->getAbsolutePath(); @@ -108,8 +110,8 @@ private function setOptions($pkg){ * Main entry point. * @return void */ - public function main() { - + public function main() + { if ($this->dir === null) { throw new BuildException("You must specify the \"dir\" attribute for PEAR package task."); } @@ -126,7 +128,7 @@ public function main() { $package->setPackage('propel_generator'); $package->setSummary('Generator component of the Propel PHP object persistence layer'); $package->setDescription('Propel is an object persistence layer for PHP5 based on Apache Torque. This package provides the generator engine that builds PHP classes and SQL DDL based on an XML representation of your data model.'); - $package->setChannel('pear.phpdb.org'); + $package->setChannel('pear.propelorm.org'); $package->setPackageType('php'); $package->setReleaseVersion($this->version); @@ -160,7 +162,7 @@ public function main() { $package->setPearinstallerDep('1.4.0'); // "package" dependencies - $package->addPackageDepWithChannel( 'required', 'phing', 'pear.phing.info', '2.3.0'); + $package->addPackageDepWithChannel('required', 'phing', 'pear.phing.info', '2.3.0'); $package->addExtensionDep('required', 'pdo'); $package->addExtensionDep('required', 'xml'); @@ -186,7 +188,8 @@ public function main() { * Used by the PEAR_PackageFileManager_PhingFileSet lister. * @return array FileSet[] */ - public function getFileSets() { + public function getFileSets() + { return $this->filesets; } @@ -199,7 +202,8 @@ public function getFileSets() { * * @return FileSet The created fileset object */ - function createFileSet() { + function createFileSet() + { $num = array_push($this->filesets, new FileSet()); return $this->filesets[$num-1]; } @@ -209,7 +213,8 @@ function createFileSet() { * @param string $v * @return void */ - public function setVersion($v){ + public function setVersion($v) + { $this->version = $v; } @@ -218,7 +223,8 @@ public function setVersion($v){ * @param string $v * @return void */ - public function setState($v) { + public function setState($v) + { $this->state = $v; } @@ -227,7 +233,8 @@ public function setState($v) { * @param string $v * @return void */ - public function setNotes($v) { + public function setNotes($v) + { $this->notes = $v; } /** @@ -235,14 +242,16 @@ public function setNotes($v) { * @param PhingFile $f * @return void */ - public function setDir(PhingFile $f) { + public function setDir(PhingFile $f) + { $this->dir = $f; } /** * Sets the file to use for generated package.xml */ - public function setDestFile(PhingFile $f) { + public function setDestFile(PhingFile $f) + { $this->packageFile = $f; } diff --git a/generator/pear/build-pear-package.xml b/generator/pear/build-pear-package.xml index b468679f1..bf52164e0 100644 --- a/generator/pear/build-pear-package.xml +++ b/generator/pear/build-pear-package.xml @@ -19,8 +19,9 @@ - diff --git a/generator/pear/build.properties b/generator/pear/build.properties index fe317e435..0f6c76b90 100644 --- a/generator/pear/build.properties +++ b/generator/pear/build.properties @@ -1,5 +1,5 @@ # In this file you can define any properties taht you want to affect # all projects built using the propel-gen script on this system # -# See http://propel.phpdb.org/trac/wiki/Users/Documentation/BuildProperties for a -# list of available properties. +# See http://www.propelorm.org/wiki/Documentation/1.5/BuildConfiguration +# for a list of available properties. diff --git a/generator/pear/pear-propel-gen b/generator/pear/pear-propel-gen index 44d1a1cd5..253ef2920 100644 --- a/generator/pear/pear-propel-gen +++ b/generator/pear/pear-propel-gen @@ -11,7 +11,6 @@ # (currently this is not reached) if (test -z "$PHING_COMMAND") ; then - echo "WARNING: PHP_COMMAND environment not set. (Assuming phing on PATH)" export PHING_COMMAND="phing" fi diff --git a/runtime/lib/query/Criteria.php b/runtime/lib/query/Criteria.php index 407a69b01..78f85baee 100644 --- a/runtime/lib/query/Criteria.php +++ b/runtime/lib/query/Criteria.php @@ -741,7 +741,7 @@ public function addJoin($left, $right, $operator = null) /** * Add a join with multiple conditions - * see http://propel.phpdb.org/trac/ticket/167, http://propel.phpdb.org/trac/ticket/606 + * @see http://propel.phpdb.org/trac/ticket/167, http://propel.phpdb.org/trac/ticket/606 * * Example usage: * $c->addMultipleJoin(array( diff --git a/runtime/pear/BuildPropelPEARPackageTask.php b/runtime/pear/BuildPropelPEARPackageTask.php index 5d65421e7..84e7ba4a9 100644 --- a/runtime/pear/BuildPropelPEARPackageTask.php +++ b/runtime/pear/BuildPropelPEARPackageTask.php @@ -18,7 +18,8 @@ * @package phing.tasks.ext * @version $Revision$ */ -class BuildPropelPEARPackageTask extends MatchingTask { +class BuildPropelPEARPackageTask extends MatchingTask +{ /** Base directory for reading files. */ private $dir; @@ -32,15 +33,16 @@ class BuildPropelPEARPackageTask extends MatchingTask { /** Package file */ private $packageFile; - public function init() { + public function init() + { include_once 'PEAR/PackageFileManager2.php'; if (!class_exists('PEAR_PackageFileManager2')) { throw new BuildException("You must have installed PEAR_PackageFileManager2 (PEAR_PackageFileManager >= 1.6.0) in order to create a PEAR package.xml file."); } } - private function setOptions($pkg){ - + private function setOptions($pkg) + { $options['baseinstalldir'] = 'propel'; $options['packagedirectory'] = $this->dir->getAbsolutePath(); @@ -73,8 +75,8 @@ private function setOptions($pkg){ * Main entry point. * @return void */ - public function main() { - + public function main() + { if ($this->dir === null) { throw new BuildException("You must specify the \"dir\" attribute for PEAR package task."); } @@ -91,7 +93,7 @@ public function main() { $package->setPackage('propel_runtime'); $package->setSummary('Runtime component of the Propel PHP object persistence layer'); $package->setDescription('Propel is an object persistence layer for PHP5 based on Apache Torque. This package provides the runtime engine that transparently handles object persistence and retrieval.'); - $package->setChannel('pear.phpdb.org'); + $package->setChannel('pear.propelorm.org'); $package->setPackageType('php'); $package->setReleaseVersion($this->version); @@ -133,7 +135,8 @@ public function main() { * Used by the PEAR_PackageFileManager_PhingFileSet lister. * @return array FileSet[] */ - public function getFileSets() { + public function getFileSets() + { return $this->filesets; } @@ -146,7 +149,8 @@ public function getFileSets() { * * @return FileSet The created fileset object */ - function createFileSet() { + function createFileSet() + { $num = array_push($this->filesets, new FileSet()); return $this->filesets[$num-1]; } @@ -156,7 +160,8 @@ function createFileSet() { * @param string $v * @return void */ - public function setVersion($v){ + public function setVersion($v) + { $this->version = $v; } @@ -165,7 +170,8 @@ public function setVersion($v){ * @param string $v * @return void */ - public function setState($v) { + public function setState($v) + { $this->state = $v; } @@ -174,7 +180,8 @@ public function setState($v) { * @param string $v * @return void */ - public function setNotes($v) { + public function setNotes($v) + { $this->notes = $v; } /** @@ -182,14 +189,16 @@ public function setNotes($v) { * @param PhingFile $f * @return void */ - public function setDir(PhingFile $f) { + public function setDir(PhingFile $f) + { $this->dir = $f; } /** * Sets the file to use for generated package.xml */ - public function setDestFile(PhingFile $f) { + public function setDestFile(PhingFile $f) + { $this->packageFile = $f; } diff --git a/runtime/pear/build-pear-package.xml b/runtime/pear/build-pear-package.xml index 2a4186e0d..40486afed 100644 --- a/runtime/pear/build-pear-package.xml +++ b/runtime/pear/build-pear-package.xml @@ -14,8 +14,9 @@ -