Hi, i have a problem when i want to retrieve data from the database. I am executing the following SQL via the queryBuilder.
'SELECT [model_facebookpost_2].* FROM [Model\FacebookPost] AS [model_facebookpost_2] LEFT JOIN [Model\FacebookPostContent] AS [model_facebookpostcontent_1] ON model_facebookpost_2.id = model_facebookpostcontent_1.fbPostId LEFT JOIN [Model\FacebookPostLink] AS [model_facebookpostlink_1] ON model_facebookpost_2.id = model_facebookpostlink_1.id WHERE model_facebookpost_2.accountId = :model_facebookpost_2_eq_0: ORDER BY dateCreated DESC LIMIT :APL0:'
I have set the limit to 10. When I execute the SQL with the LEFT JOIN i get 4 datasets from the db. When I execute it without the LEFT JOIN i get 10 datasets. I also want to get 10 dataset when i include the LEFT JOIN. Can anybody help me or does anyone know a workarround?
Phalcon Version: 3.2.1 PHP Version: 7.0.22 DBMS: MySQL OS: Ubuntu
Thanks Tom