mirror of
https://github.com/silverstripe/silverstripe-comments
synced 2024-10-22 11:05:49 +02:00
877537c284
Currently an issue exists that when a controller calls a method which exists on an extension (i.e Comments()) it incorrectly classed as a relation instead of a method resulting in a SQL error. This patch works around that issue by directly invoking the method.
11 lines
183 B
PHP
11 lines
183 B
PHP
<?php
|
|
|
|
/**
|
|
* @package comments
|
|
*/
|
|
class ContentControllerCommentsExtension extends Extension {
|
|
|
|
public function Comments() {
|
|
return $this->owner->dataRecord->getComments();
|
|
}
|
|
} |