original_string: public function parent()
      {
          if (!$this->has('slug')) {
              throw new FatalErrorException(__d('content', "Missing property 'slug', make sure to include it using Query::select()."));
          }
  
          return TableRegistry::get('Content.Contents')
              ->find()
              ->select(['id', 'slug', 'content_type_slug', 'language'])
              ->where([
                  'id' => $this->translation_for,
                  'status' => 1,
              ])
              ->first();
      }
code: public function parent()
      {
          if (!$this->has('slug')) {
              throw new FatalErrorException(__d('content', "Missing property 'slug', make sure to include it using Query::select()."));
          }
  
          return TableRegistry::get('Content.Contents')
              ->find()
              ->select(['id', 'slug', 'content_type_slug', 'language'])
              ->where([
                  'id' => $this->translation_for,
                  'status' => 1,
              ])
              ->first();
      }
code_tokens: public function parent ( ) { if ( ! $ this -> has ( 'slug' ) ) { throw new FatalErrorException ( __d ( 'content' , "Missing property 'slug', make sure to include it using Query::select()." ) ) ; } return TableRegistry :: get ( 'Content.Contents' ) -> find ( ) -> select ( [ 'id' , 'slug' , 'content_type_slug' , 'language' ] ) -> where ( [ 'id' => $ this -> translation_for , 'status' => 1 , ] ) -> first ( ) ; }
docstring: Gets the parent content for which this content is a translation of.
  
  @return mixed The parent content if exists, null otherwise
docstring_tokens: Gets the parent content for which this content is a translation of .