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 | |
/* | |
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS | |
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT | |
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR | |
* A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT | |
* OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, | |
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT | |
* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, |
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 | |
use Doctrine\ORM\Mapping\ClassMetadataInfo; | |
$metadata->setInheritanceType(ClassMetadataInfo::INHERITANCE_TYPE_NONE); | |
$metadata->setPrimaryTable(array( | |
'name' => 'cms_users', | |
)); | |
$metadata->setChangeTrackingPolicy(ClassMetadataInfo::CHANGETRACKING_DEFERRED_IMPLICIT); | |
$metadata->addLifecycleCallback('doStuffOnPrePersist', 'prePersist'); |
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> |
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
<?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
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
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
<?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
- <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" 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> |
OlderNewer