You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to use your plugin but i'm facing some issues with a simple find.
For example, I have a mongo table : markers
As it is suggested in the readme, I created a MarkersTable php file, with the use Hayko\Mongodb\ORM\Table at the beginning of the file;
But what about controller ? I wrote this lines in my Markers controller :
where the find_markers function is in the MarkersTable php file :
public function find_markers ($keyword) {
$marker = $this->Markers->find('all', ['conditions' => ['name' => $keyword]]);
return $marker;
}
Do i have to load in my controller the table as i said below ? ($this->loadmodel('Markers'); ) It seems not cause i have an error (Unknown method "find_markers"...Could this be caused by using Auto-Tables ?)
Thanks by advance for your help and for your work
The text was updated successfully, but these errors were encountered:
Hi Tiago
I am trying to use your plugin but i'm facing some issues with a simple find.
For example, I have a mongo table : markers
As it is suggested in the readme, I created a MarkersTable php file, with the use Hayko\Mongodb\ORM\Table at the beginning of the file;
But what about controller ? I wrote this lines in my Markers controller :
where the find_markers function is in the MarkersTable php file :
Do i have to load in my controller the table as i said below ? ($this->loadmodel('Markers'); ) It seems not cause i have an error (Unknown method "find_markers"...Could this be caused by using Auto-Tables ?)
Thanks by advance for your help and for your work
The text was updated successfully, but these errors were encountered: