/**
  * Filter rows by foreign key object
  * @param $object DataAccessObject
  * @param $localField string The field to bind against in the factory you are using (optional)
  * @param $remoteField string The field from the object to get the value from (optional)
  */
 public function __construct(DataAccessObject $object, $localField = null, $objectField = null)
 {
     if ($localField == null) {
         $localField = $object->getIdField();
     }
     if ($objectField == null) {
         $value = $object->getId();
     } else {
         $value = $object->getFieldValue($objectField);
     }
     parent::__construct($localField, $value);
 }
 /**
  * Search a field/column for a string using a case sensitive search
  * @param $field string
  * @param $query string
  */
 public function __construct($field, $query)
 {
     parent::__construct($field, $query);
 }