Skip to content

Instantly share code, notes, and snippets.

@Hollerer
Created December 12, 2012 10:57
Show Gist options
  • Save Hollerer/4266918 to your computer and use it in GitHub Desktop.
Save Hollerer/4266918 to your computer and use it in GitHub Desktop.
<?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;
}
}
?>
@Hollerer
Copy link
Author

the Children's model

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment