Changeset 3855

Show
Ignore:
Timestamp:
02/20/08 16:10:41 (17 months ago)
Author:
jwage
Message:

Added contains() method from 0.9

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/0.10/lib/Doctrine/Query.php

    r3791 r3855  
    468468 
    469469    /** 
     470     * contains 
     471     * 
     472     * Method to check if a arbitrary piece of dql exists 
     473     * 
     474     * @param string $dql Arbitrary piece of dql to check for 
     475     * @return boolean 
     476     */ 
     477    public function contains($dql) 
     478    { 
     479      return stripos($this->getDql(), $dql) === false ? false : true; 
     480    } 
     481 
     482    /** 
    470483     * processPendingFields 
    471484     * the fields in SELECT clause cannot be parsed until the components