Created
December 12, 2012 10:57
-
-
Save Hollerer/4266918 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 WL\Komsis\Domain\Model; | |
/* * | |
* This script belongs to the FLOW3 package "MY.Package". * | |
* * | |
* */ | |
use TYPO3\FLOW3\Annotations as FLOW3; | |
use Doctrine\ORM\Mapping as ORM; | |
/** | |
* Children | |
* | |
* @FLOW3\Entity | |
*/ | |
class Children { | |
/** | |
* The childname | |
* @var string | |
*/ | |
protected $childname; | |
/** | |
* The parentid | |
* @var \MY\Package\Domain\Model\Parents | |
* @ORM\ManyToOne | |
*/ | |
protected $parentid; | |
/** | |
* Get the Child's childname | |
* | |
* @return string The Child's childname | |
*/ | |
public function getChildname() { | |
return $this->childname; | |
} | |
/** | |
* Sets this Child's childname | |
* | |
* @param string $childname The Child's childname | |
* @return void | |
*/ | |
public function setChildname($childname) { | |
$this->childname = $childname; | |
} | |
/** | |
* Get the Child's parentid | |
* | |
* @return \MY\Package\Domain\Model\Parents | |
*/ | |
public function getParentid() { | |
return $this->parentid; | |
} | |
/** | |
* Sets this Child's parentid | |
* | |
* @param \MY\Package\Domain\Model\Parents $parentid | |
* @return void | |
*/ | |
public function setParentid($parentid) { | |
$this->parentid = $parentid; | |
} | |
} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
the Children's model