[TYPO3-mvc] findByProperty($property) return empty storage with string property

Henjo Hoeksma me at henjohoeksma.nl
Fri Nov 11 12:35:14 CET 2011


It's magic isn't it?  ;-)

Kind regards,

Henjo

Problems are small because we learned how to deal with them.
Problems are big because we need to learn how to deal with them.


On Fri, Nov 11, 2011 at 11:45, Claus Fassing <claus at fassing.eu> wrote:

> Hello Henjo,
>
> Am 10.11.2011 20:48, schrieb Henjo Hoeksma:
>
>  I have ran into situations where locally (Mac) upper/lowercase was handled
>> differently then on the server (Linux).
>>
>
> as I described the developer workstation and the target server are both
> based on linux systems ;)
>
> I got a workaround now. I have to overload the magic method and it works
> as expected.
>
>    public function findByStreet($street){
>        $query = $this->createQuery();
>        $result = $query->matching($query->**equals('street',
> $street))->execute();
>        if (count($result) > 0) {
>                return $result;
>        }
>    }
>
> "street" is the db column. Usually, if no further operation needed, this
> should work out of the box without to overload the method.
> But only on the target server I get no result if I don't do this (only
> with string value). Strange anyway.
>
> Regards Claus
>
> ______________________________**_________________
> TYPO3-project-typo3v4mvc mailing list
> TYPO3-project-typo3v4mvc@**lists.typo3.org<TYPO3-project-typo3v4mvc at lists.typo3.org>
> http://lists.typo3.org/cgi-**bin/mailman/listinfo/typo3-**
> project-typo3v4mvc<http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-project-typo3v4mvc>
>


More information about the TYPO3-project-typo3v4mvc mailing list