original_string: public function isNew($new = null)
      {
          if ($new === null) {
              return $this->_new;
          }
  
          $new = (bool)$new;
  
          if ($new) {
              foreach ($this->_properties as $k => $p) {
                  $this->_dirty[$k] = true;
              }
          }
  
          return $this->_new = $new;
      }
code: public function isNew($new = null)
      {
          if ($new === null) {
              return $this->_new;
          }
  
          $new = (bool)$new;
  
          if ($new) {
              foreach ($this->_properties as $k => $p) {
                  $this->_dirty[$k] = true;
              }
          }
  
          return $this->_new = $new;
      }
code_tokens: public function isNew ( $ new = null ) { if ( $ new === null ) { return $ this -> _new ; } $ new = ( bool ) $ new ; if ( $ new ) { foreach ( $ this -> _properties as $ k => $ p ) { $ this -> _dirty [ $ k ] = true ; } } return $ this -> _new = $ new ; }
docstring: Returns whether or not this entity has already been persisted.
  This method can return null in the case there is no prior information on
  the status of this entity.
  
  If called with a boolean it will set the known status of this instance,
  true means that the instance is not yet persisted in the database, false
  that it already is.
  
  @param bool|null $new true if it is known this instance was not yet persisted
  @return bool Whether or not the entity has been persisted.
docstring_tokens: Returns whether or not this entity has already been persisted . This method can return null in the case there is no prior information on the status of this entity .