}
}
- /**
- * Executes the number of matching objects for the query
- *
- * @return integer The number of matching objects
- * @deprecated since Extbase 1.3.0; was removed in FLOW3; will be removed in Extbase 1.4.0; use Query::execute()::count() instead
- * @api
- */
- public function count() {
- t3lib_div::logDeprecatedFunction();
- return $this->persistenceManager->getObjectCountByQuery($this);
- }
-
/**
* Sets the property names to order the result by. Expected like this:
* array(
return $this->qomFactory->not($constraint);
}
- /**
- * Matches against the (internal) uid.
- *
- * @param int $uid The uid to match against
- * @return Tx_Extbase_Persistence_QOM_ComparisonInterface
- * @deprecated since Extbase 1.2.0; was removed in FLOW3; will be removed in Extbase 1.3.0; use equals() instead
- */
- public function withUid($operand) {
- t3lib_div::logDeprecatedFunction();
- return $this->qomFactory->comparison(
- $this->qomFactory->propertyValue('uid', $this->getSelectorName()),
- Tx_Extbase_Persistence_QueryInterface::OPERATOR_EQUAL_TO,
- $operand
- );
- }
-
/**
* Returns an equals criterion used for matching objects against a query
*
$operand1 = $comparison->getOperand1();
$operator = $comparison->getOperator();
$operand2 = $comparison->getOperand2();
+
+ /**
+ * This if enables equals() to behave like in(). Use in() instead.
+ * @deprecated since Extbase 1.3; will be removed in Extbase 1.5
+ */
if (($operator === Tx_Extbase_Persistence_QueryInterface::OPERATOR_EQUAL_TO) && (is_array($operand2) || ($operand2 instanceof ArrayAccess) || ($operand2 instanceof Traversable))) {
- // this else branch enables equals() to behave like in(). This behavior is deprecated and will be removed in future. Use in() instead.
$operator = Tx_Extbase_Persistence_QueryInterface::OPERATOR_IN;
}
/**
- * Base testcase for the Extbase extension.
- * @deprecated use Tx_Extbase_Tests_Unit_BaseTestCase instead
+ * Was the base testcase for the Extbase extension.
+ * Use Tx_Extbase_Tests_Unit_BaseTestCase instead.
+ * @deprecated since Extbase 1.3; will be removed in Extbase 1.5
*/
abstract class Tx_Extbase_BaseTestCase extends Tx_Extbase_Tests_Unit_BaseTestCase {