public function doClearPath()
    {
        if (
            $this->not_cleared_path &&
            $this->getStorage() instanceof Storage &&
            $this->getStorage()->getPath() &&
            strpos($this->not_cleared_path, $this->getStorage()->getPath()) === 0
        ) {
            $this->path = substr($this->not_cleared_path, strlen($this->getStorage()->getPath()));
            $this->not_cleared_path = '';
        }
    }
public function doClearPath()
    {
        if (
            $this->not_cleared_path &&
            $this->getStorage() instanceof Storage &&
            $this->getStorage()->getPath() &&
            strpos($this->not_cleared_path, $this->getStorage()->getPath()) === 0
        ) {
            $this->path = substr($this->not_cleared_path, strlen($this->getStorage()->getPath()));
            $this->not_cleared_path = '';
        }
    }
public function doClearPath ( ) { if ( $ this -> not_cleared_path && $ this -> getStorage ( ) instanceof Storage && $ this -> getStorage ( ) -> getPath ( ) && strpos ( $ this -> not_cleared_path , $ this -> getStorage ( ) -> getPath ( ) ) === 0 ) { $ this -> path = substr ( $ this -> not_cleared_path , strlen ( $ this -> getStorage ( ) -> getPath ( ) ) ) ; $ this -> not_cleared_path = '' ; } }
Remove storage path in item path.

@ORM\PrePersist
@ORM\PreUpdate
Remove storage path in item path .