public function addEntityWith(string $name)
    {

        if (strstr($this->entityWith, $name)) {
            // it's already loaded, do nothing
        }

        switch ($this->entityWith) {
            case 'none':
                $this->entityWith = $name;
                break;
            case 'all':
                // do nothing all are loaded anyway
                break;

            default:
                $this->entityWith .= ',' . $name;
                break;
        }


    }
public function addEntityWith(string $name)
    {

        if (strstr($this->entityWith, $name)) {
            // it's already loaded, do nothing
        }

        switch ($this->entityWith) {
            case 'none':
                $this->entityWith = $name;
                break;
            case 'all':
                // do nothing all are loaded anyway
                break;

            default:
                $this->entityWith .= ',' . $name;
                break;
        }


    }
public function addEntityWith ( string $ name ) { if ( strstr ( $ this -> entityWith , $ name ) ) { // it's already loaded, do nothing } switch ( $ this -> entityWith ) { case 'none' : $ this -> entityWith = $ name ; break ; case 'all' : // do nothing all are loaded anyway break ; default : $ this -> entityWith .= ',' . $ name ; break ; } }
load a supplied with string into the class variable
@param string $name
load a supplied with string into the class variable