{"id":228,"date":"2018-12-03T00:36:05","date_gmt":"2018-12-03T00:36:05","guid":{"rendered":"https:\/\/dapliw.org.ve\/?p=228"},"modified":"2018-12-03T00:36:05","modified_gmt":"2018-12-03T00:36:05","slug":"cakephp-3-comparar-una-columna-con-una-parte-de-una-cadena-string-en-una-busqueda-find","status":"publish","type":"post","link":"https:\/\/saemas.com\/sitio_web\/cakephp-3-comparar-una-columna-con-una-parte-de-una-cadena-string-en-una-busqueda-find\/","title":{"rendered":"Cakephp 3 &#8211; Comparar una parte de una columna tipo string en una b\u00fasqueda (find)"},"content":{"rendered":"<p>En la b\u00fasqueda utilizamos el comando de SQL \u00abSUBSTRING\u00bb. Ejemplo:<\/p>\n<pre>\n$students = TableRegistry::get('Students');\n\n$query= $students->find()->where(['SUBSTRING(transaction_description, 1, 3) =' => 'Ago']); \n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>En la b\u00fasqueda utilizamos el comando de SQL \u00abSUBSTRING\u00bb. Ejemplo: $students = TableRegistry::get(&#8216;Students&#8217;); $query= $students->find()->where([&#8216;SUBSTRING(transaction_description, 1, 3) =&#8217; => &#8216;Ago&#8217;]);<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"material-hide-sections":[],"footnotes":""},"categories":[11],"tags":[12],"class_list":["post-228","post","type-post","status-publish","format-standard","hentry","category-cakephp","tag-cakephp"],"_links":{"self":[{"href":"https:\/\/saemas.com\/sitio_web\/wp-json\/wp\/v2\/posts\/228","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/saemas.com\/sitio_web\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/saemas.com\/sitio_web\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/saemas.com\/sitio_web\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/saemas.com\/sitio_web\/wp-json\/wp\/v2\/comments?post=228"}],"version-history":[{"count":0,"href":"https:\/\/saemas.com\/sitio_web\/wp-json\/wp\/v2\/posts\/228\/revisions"}],"wp:attachment":[{"href":"https:\/\/saemas.com\/sitio_web\/wp-json\/wp\/v2\/media?parent=228"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/saemas.com\/sitio_web\/wp-json\/wp\/v2\/categories?post=228"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/saemas.com\/sitio_web\/wp-json\/wp\/v2\/tags?post=228"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}