Neos\Flow\Persistence\Repository::__construct PHP Method

__construct() public method

Initializes a new Repository.
public __construct ( )
    public function __construct()
    {
        if (defined('static::ENTITY_CLASSNAME') === false) {
            $this->entityClassName = preg_replace(['/\\\\Repository\\\\/', '/Repository$/'], ['\\Model\\', ''], get_class($this));
        } else {
            $this->entityClassName = static::ENTITY_CLASSNAME;
        }
    }

Usage Example

 /**
  * Constructor
  */
 public function __construct()
 {
     parent::__construct();
     $this->removedResources = new \SplObjectStorage();
     $this->addedResources = new \SplObjectStorage();
 }
All Usage Examples Of Neos\Flow\Persistence\Repository::__construct