findBy()
Description
A magical/dynamic-finder CakePHP method, which finds a database entity, with the specified 'key'.
Usage: $user = $this->Users->findByUsername('joebob'); $user = $this->Users->findAllByUsername('joebob'); $existingCat = $this->Cats->findByFunctionName($this->request->getData('function_name'))->first(); $cat = $this->Cats->findById($id)