Is this object attached to a repository? This is essentially a helpful wrapper for Repository::init( $this )->isAttached( $this );
@return booly
544781
public function isAttached()
    {
        try {
            if( $repository = $this->r() ) {
                return $repository->isAttached( $this );
            }
        } catch ( EntityMissingEntityManagerException $e ) {
        }

        throw new \LogicException( "We've not got a repository configured for this entity. I can't answer this question." );
    }
1161387
public function treat()
    {
        if (!$this->isTreated) {
            $this->initFetchValues();
            $this->isTreated = TRUE;
            if ($this->isActive()) {
                $this->validFetchValues();
            }
        }
        return $this;
    }
379118
public static function init(): self
    {
        if (self::$instance == null) {
            self::$instance = new self();
        }

        return self::$instance;
    }
157032
protected function init()
    {
        $this->setMethod(static::$_DEFAULT_HTTP_METHOD);
        $this->setHeaders(static::$_DEFAULT_HEADERS);
        $this->setOptions(static::$_DEFAULT_OPTIONS);
        $this->body = NULL;
        $this->error = NULL;
        $this->status = self::STATUS_INIT;
        if (self::$_AUTO_INIT){
            return $this->initCurl();
        }
        return TRUE;
    }
1316517
public function initialise() {
        if ($this->initialised || during_initial_install()) {
            return false;
        }
        $this->context = $this->page->context;
        $this->load_administration_settings();

        // Check if local plugins is adding node to site admin.
        $this->load_local_plugin_settings();

        $this->initialised = true;
    }
920156
function isAbstract() {
    if ($this->header->isAbstractClass()) {
      return TRUE;
    }
    if ($this->header->isTrait()) {
      return TRUE;
    }
    if ($this->header->isInterface()) {
      return $this->body->hasMethods();
    }
    return FALSE;
  }
805557
final public function init() {
		if ($this->request_initted)
			return;
		$this->init_request();
		if ($this->auto_shutdown)
			register_shutdown_function([$this, 'shutdown']);
		$this->request_initted = true;
		return $this;
	}
13932
public function isActive()
    {
        // wee need a namespace first
        if(!isset($this->namespace)) {
            return false;
        }

        // Plugin is not active is it's not installed
        if(!self::isInstalled($this->namespace)) {
            return false;
        }

        if(!$this->isActive) {
            return false;
        }
        return true;
    }
1120672
public function __isAllowed()
    {
        if ($this->checkAuthentication !== true) {
            // this controller is not responsible for the authentication
            return false;
        }

        $this->typo3Loader->initializeBackendEndUser();

        $beUser = $this->typo3Loader->getBackEndUser();
        if (false === is_array($beUser->user) || empty($beUser->user['uid'])) {
            return false;
        }
        return true;
    }
237244
public function isAnchorMode()
    {
        foreach ($this->tabs as $tab) {
            if (!empty($tab->getAnchor())) {
                return true;
            }
        }

        return false;
    }
1073577
public function initialize()
    {
        if ($this->initialized) {
            return;
        }

        $this->initialized = true;
        $this->repository = app(RepositoryInterface::class);
        $this->repository->setClass($this->class);

        $model = $this->makeModel();
        parent::setModel($model);
        $this->getButtons()->setModel($model);

        parent::initialize();

        if (! $this->hasHtmlAttribute('enctype')) {

            // Recursive iterate subset of form elements
            // and if subset contains an upload element then add to for
            $this->recursiveIterateElements(function ($element) {
                if ($element instanceof Upload) {
                    $this->withFiles();

                    return true;
                }
            });
        }

        $this->getButtons()->setModelConfiguration(
            $this->getModelConfiguration()
        );
    }
689802
public function initialize()
    {
        parent::initialize();

        $this->eventsManager->attach('view:notFoundView', function ($event, \Phalcon\Mvc\ViewInterface $view) {
            if (!in_array($this->dispatcher->getActionName(), ['new', 'edit', 'show', 'index'])) {
                return false;
            }

            if ($view->getCurrentRenderLevel() == View::LEVEL_ACTION_VIEW) {
                $templatePath = implode(DIRECTORY_SEPARATOR, [dirname(__FILE__), 'Crud','']);

                $view->setViewsDir($templatePath);
                $view->setControllerViewPath('views');
                $view->setRenderLevel(View::LEVEL_ACTION_VIEW);

                $view->render('', $this->dispatcher->getActionName());
            }
        });
    }
953963
public function isAppReadyToInstall() {
		$checkPHPversion = $this->checkPhpVersion();
		if ($checkPHPversion === false) {
			return false;
		}

		$checkPHPextensions = $this->checkPhpExtensions(true);
		if ($checkPHPextensions === false) {
			return false;
		}

		return true;
	}
410664
public function & InitAll () {
		/** @var $this \MvcCore\Route */
		if ($this->match === NULL && $this->reverse === NULL) {
			$this->initMatchAndReverse();
		} else if ($this->match !== NULL && ($this->reverseParams === NULL || $this->lastPatternParam === NULL)) {
			$this->initReverse();
		}
		return $this;
	}
92142
public function init ()
	{

		if (!empty($this->belongs_to)) {
			try {
				$model = $this->belongs_to['model'];
				$this->parent_model = $model::find($this->params[$this->belongs_to['param']]);

			} catch (\PDOException $e) {
				return $this->http_status(404);
			}
		}

		return parent::init();
	}
241610
protected function initialize()
	{
		foreach($GLOBALS['BOOTSTRAP']['wrappers'] as $groupName => $group) {
			foreach($group as $type => $config) {
				if($config['name'] == $this->model->type) {
					$this->group = $groupName;
					$this->type  = $type;
					return true;
				}
			}
		}

		return false;
	}
925923
public function getRepository()
    {
        if (!$this->_repository instanceof AnDomainRepositoryAbstract) {
            if (!$this->_repository instanceof AnServiceIdentifier) {
                $this->setRepository($this->_repository);
            }

            $this->_repository = AnDomain::getRepository($this->_repository);
        }

        return $this->_repository;
    }