Created
December 12, 2012 10:52
-
-
Save Hollerer/4266879 to your computer and use it in GitHub Desktop.
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 MY\Package\Domain\Model; | |
/* * | |
* This script belongs to the FLOW3 package "MY.Package". * | |
* * | |
* */ | |
use TYPO3\FLOW3\Annotations as FLOW3; | |
use Doctrine\ORM\Mapping as ORM; | |
/** | |
* A Parents | |
* | |
* @FLOW3\Entity | |
*/ | |
class Parents { | |
/** | |
* The name | |
* @var string | |
*/ | |
protected $name; | |
/** | |
* @var \Doctrine\Common\Collections\ArrayCollection<\MY\Package\Domain\Model\Children> | |
* @ORM\OneToMany(mappedBy="parentid") | |
*/ | |
protected $mychildren; | |
/** | |
* Get the Parents's name | |
* | |
* @return string The Parents's name | |
*/ | |
public function getName() { | |
return $this->name; | |
} | |
/** | |
* Sets this Parents's name | |
* | |
* @param string $name The Parents's name | |
* @return void | |
*/ | |
public function setName($name) { | |
$this->name = $name; | |
} | |
} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
the Parent's model