public function findObjects($property, $value) {
        $return = new ArrayCollection();
        foreach ($this as $object) {
            if (property_exists($object, $property)) {
                if ($value === $object->$property)
                    $return->append($object);
            }
        }
        return $return;
    }
public function findObjects($property, $value) {
        $return = new ArrayCollection();
        foreach ($this as $object) {
            if (property_exists($object, $property)) {
                if ($value === $object->$property)
                    $return->append($object);
            }
        }
        return $return;
    }
public function findObjects ( $ property , $ value ) { $ return = new ArrayCollection ( ) ; foreach ( $ this as $ object ) { if ( property_exists ( $ object , $ property ) ) { if ( $ value === $ object -> $ property ) $ return -> append ( $ object ) ; } } return $ return ; }
Finds all objects that the given property has the given value
@param string $property
@param mixed $value
@return \DBScribe\ArrayCollection
Finds all objects that the given property has the given value