"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "Neos.Flow/Documentation/TheDefinitiveGuide/PartII/ModelAndRepository.rst" between
flow-development-collection-7.2.0.tar.gz and flow-development-collection-7.2.1.tar.gz

About: TYPO3 Flow is a web application platform enabling developers creating fast, reliable and complex web solutions ("the next level of PHP programming"; old name "FLOW3").

ModelAndRepository.rst  (flow-development-collection-7.2.0):ModelAndRepository.rst  (flow-development-collection-7.2.1)
skipping to change at line 654 skipping to change at line 654
<?php <?php
namespace Acme\Blog\Domain\Model; namespace Acme\Blog\Domain\Model;
/* * /* *
* This script belongs to the Flow package "Acme.Blog". * * This script belongs to the Flow package "Acme.Blog". *
* * * *
* */ * */
use Neos\Flow\Annotations as Flow; use Neos\Flow\Annotations as Flow;
use Doctrine\ORM\Mapping as ORM; use Doctrine\ORM\Mapping as ORM;
use Doctrine\Common\Collections; use Doctrine\Common\Collections\Collection;
use Doctrine\Common\Collections\ArrayCollection;
/** /**
* @Flow\Entity * @Flow\Entity
*/ */
class Post { class Post {
/** /**
* @Flow\Validate(type="NotEmpty") * @Flow\Validate(type="NotEmpty")
* @ORM\ManyToOne(inversedBy="posts") * @ORM\ManyToOne(inversedBy="posts")
* @var Blog * @var Blog
skipping to change at line 696 skipping to change at line 697
*/ */
protected $tags; protected $tags;
/** /**
* Constructs this post * Constructs this post
*/ */
public function __construct() public function __construct()
{ {
$this->date = new \DateTime(); $this->date = new \DateTime();
$this->comments = new ArrayCollection(); $this->comments = new ArrayCollection();
$this->tags = new ArrayCollection();
} }
... ...
/** /**
* @return Collection<Comment> * @return Collection<Comment>
*/ */
public function getComments(): Collection public function getComments(): Collection
{ {
return $this->comments; return $this->comments;
 End of changes. 2 change blocks. 
1 lines changed or deleted 3 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)