Code Monkey home page Code Monkey logo

Comments (8)

snoopy4ever avatar snoopy4ever commented on August 15, 2024 2

Nice one mate 👍
Dzieki Lukasz 🥇

from sleekdb.

typomedia avatar typomedia commented on August 15, 2024 1

Got the same issue! The bug came with the lastest release 1.5.0. Unfortunately 1.0.3 is missing some new features :(

from sleekdb.

rakibtg avatar rakibtg commented on August 15, 2024 1

@lukasznowicki thanks for the contribution, appreciate that you take the time and to fix the issue. I will merge your PR today!

from sleekdb.

thecosss avatar thecosss commented on August 15, 2024 1

@lukasznowicki Didn't worked for me. I copied your src/traits/helpers.php but the bug is still there (
UPDATE:

$tasksArr = $tasksStore
                ->where('done', '=', false)
                ->where('assigned', '=', $workerId)
                ->where('done', '=', false)
                ->fetch();

Actually this worked. If I use ->where('done', '=', false) one time, the first one is ignored

from sleekdb.

lukasznowicki avatar lukasznowicki commented on August 15, 2024

@snoopy4ever @typomedia @rakibtg Guys, here is the solution for this problem - #23

I also forked (to create PR) this repository and merged that fix - https://github.com/lukasznowicki/SleekDB

from sleekdb.

thecosss avatar thecosss commented on August 15, 2024

@lukasznowicki thanks for the contribution, appreciate that you take the time and to fix the issue. I will merge your PR today!

So where is the merge?! This has to be a hotfix

from sleekdb.

rakibtg avatar rakibtg commented on August 15, 2024

@snoopy4ever I think you should use orWhere like this:

$news = $newsStore
        ->orderBy( 'asc', 'order' )
        ->where( 'startDate', '<', time() )
        ->orWhere( 'endDate', '>', time() )
        ->fetch();

from sleekdb.

rakibtg avatar rakibtg commented on August 15, 2024

I will close the issue here, feel free to post a comment and re-open it.

from sleekdb.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.