This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/lib/Doctrine/ORM/Tools/Export/Driver/XmlExporter.php b/lib/Doctrine/ORM/Tools/Export/Driver/XmlExporter.php | |
index 23466a1..0498cc0 100644 | |
--- a/lib/Doctrine/ORM/Tools/Export/Driver/XmlExporter.php | |
+++ b/lib/Doctrine/ORM/Tools/Export/Driver/XmlExporter.php | |
@@ -266,19 +266,19 @@ class XmlExporter extends AbstractExporter | |
} | |
$cascade = array(); | |
if ($associationMapping->isCascadeRemove) { | |
- $cascade[] = 'remove'; | |
+ $cascade[] = 'cascade-remove'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
find all Documents\User where username = 'jwage' and password = 'changeme' | |
Array | |
( | |
[className] => Documents\User | |
[type] => 1 | |
[where] => Array | |
( | |
[username] => jwage | |
[password] => changeme |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<package packagerversion="1.9.0" version="2.0" xmlns="http://pear.php.net/dtd/package-2.0" xmlns:tasks="http://pear.php.net/dtd/tasks-1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://pear.php.net/dtd/tasks-1.0 | |
http://pear.php.net/dtd/tasks-1.0.xsd | |
http://pear.php.net/dtd/package-2.0 | |
http://pear.php.net/dtd/package-2.0.xsd"> | |
<name>DoctrineORM</name> | |
<channel>pear.doctrine-project.org</channel> | |
<summary>Doctrine Object Relationl Mapper</summary> | |
<description>The Doctrine ORM package is the primary package containing the object relational mapper.</description> | |
<lead> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- <d51pearpkg2 baseinstalldir="/" dir="${build.dir}/orm/DoctrineORM-${version}"> | |
+ <d51pearpkg2 baseinstalldir="/" dir="${build.dir}/orm"> | |
<name>DoctrineORM</name> | |
<summary>Doctrine Object Relationl Mapper</summary> | |
<channel>pear.doctrine-project.org</channel> | |
@@ -162,13 +131,13 @@ | |
<php minimum_version="5.3.0" /> | |
<pear minimum_version="1.6.0" recommended_version="1.6.1" /> | |
</dependencies> | |
- <dirroles key="bin">script</dirroles> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0"?> | |
<!-- | |
Doctrine 2 build file. | |
--> | |
<project name="Doctrine2" default="build" basedir="."> | |
<import file="build-dependencies.xml"/> | |
<taskdef classname="NativePhpunitTask" classpath="./tests/" name="nativephpunit" /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class OutputWriter | |
{ | |
private $_closure; | |
public function __construct($closure = null) | |
{ | |
if ($closure === null) { | |
$closure = function($message) {}; | |
} | |
$this->_closure = $closure; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
protected function _getMigrationConfiguration(InputInterface $input, OutputInterface $output) | |
{ | |
$outputWriter = new OutputWriter(function($message) use ($output) { | |
return $output->writeln($message); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Doctrine\Tests\ORM\Mapping; | |
/** | |
* @Entity | |
* @HasLifecycleCallbacks | |
* @Table(name="cms_users") | |
*/ | |
class User |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Doctrine\Tests\ORM\Mapping\User: | |
type: entity | |
table: cms_users | |
id: | |
id: | |
type: integer | |
generator: | |
strategy: AUTO | |
fields: | |
name: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<doctrine-mapping xmlns="http://doctrine-project.org/schemas/orm/doctrine-mapping" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="http://doctrine-project.org/schemas/orm/doctrine-mapping | |
http://www.doctrine-project.org/schemas/orm/doctrine-mapping.xsd"> | |
<entity name="Doctrine\Tests\ORM\Mapping\User" table="cms_users"> | |
<lifecycle-callbacks> |