Skip to content

Instantly share code, notes, and snippets.

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

the Parent's model

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