protected function loadFromUniqueIdentifier($uniqueIdentifier)
    {
        $this->newRecord = false;
        $repository = $this->getRepository();
        $repository->hydrateObject($this, $uniqueIdentifier);
        $this->onLoaded();
    }
protected function loadFromUniqueIdentifier($uniqueIdentifier)
    {
        $this->newRecord = false;
        $repository = $this->getRepository();
        $repository->hydrateObject($this, $uniqueIdentifier);
        $this->onLoaded();
    }
protected function loadFromUniqueIdentifier ( $ uniqueIdentifier ) { $ this -> newRecord = false ; $ repository = $ this -> getRepository ( ) ; $ repository -> hydrateObject ( $ this , $ uniqueIdentifier ) ; $ this -> onLoaded ( ) ; }
Loads a record using the unique identifier.

@param $uniqueIdentifier
Loads a record using the unique identifier .